1

Yahoo Session Problems! Can't Iniitialize!!!

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';
}

by
2 Replies
  • 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.
    0
  • Hi, 
    I am facing the following error while invoke the below code:
     
    $yahoo_session = YahooSession::requireSession(CONSUMER_KEY, CONSUMER_SECRET); 
    even consumer key and consumer secret are correct.


    Error detected in Test.php: Cannot get yahoo_session.
    In the Application Editor, verify that the Permissions are set correctly.
    Also, make sure that the Consumer Key and Consumer Secret in the source code are correct.


    QUOTE(BRBissoon @ 14 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.
    0
This forum is locked.

Recent Posts

in YDN Documentation