Yahoo Session Problems! Can't Iniitialize!!!

BRBissoon19 Jan 2011 1:26 PM
How's it going Developers. For the life of me, no matter what documentation I use or examples I use I can't initialize a yahoo session. I'm using the PHP SDK and no matter what I put, it just refuses to work. What am I missing!

What I have as of barebones ...

require("lib/Yahoo.inc");

// Your Consumer Key (API Key) goes here.
define('CONSUMER_KEY', "<my consumer key>");

// Your Consumer Secret goes here.
define('CONSUMER_SECRET', "<my app secret>");

// Your application ID goes here.
define('APPID', "<appid>");

$session = YahooSession::requireSession(CONSUMER_KEY,CONSUMER_SECRET,APPID);

if(!$session){
echo 'No Session';
}
Wong12 Jan 2012 10:10 PM
Same to me ... if you found the solution just post here , i need help as well ..&nbsp; : (<br><br> QUOTE (BRBissoon @ 19 Jan 2011 1:26 PM) How&#39;s it going Developers. For the life of me, no matter what documentation I use or examples I use I can&#39;t initialize a yahoo session. I&#39;m using the PHP SDK and no matter what I put, it just refuses to work. What am I missing!<br><br>What I have as of barebones ...<br><br>require(&quot;lib/Yahoo.inc&quot;); <br><br>// Your Consumer Key (API Key) goes here. <br>define(&#39;CONSUMER_KEY&#39;, &quot; &quot;); <br><br>// Your Consumer Secret goes here. <br>define(&#39;CONSUMER_SECRET&#39;, &quot; &quot;); <br><br>// Your application ID goes here. <br>define(&#39;APPID&#39;, &quot; &quot;); <br><br>$session = YahooSession::requireSession(CONSUMER_KEY,CONSUMER_SECRET,APPID); <br><br>if(!$session){<br>echo &#39;No Session&#39;;<br>}
BRBissoon14 Jan 2012 2:19 AM
Funny enough, after a few rounds of refreshes - the exact same code worked. Just make sure your syntax is well formed and use Google Chrome to view full headers to get in depth error messages.