0

Oauth getRequestToken Failing in sample code

I'm trying to get the sample code on the Fantasy Sports API page running:
http://developer.yahoo.com/fantasysports/guide/GettingStarted.html#GettingStarted-sample

I keep getting an error on line 58:
$response = $o->getRequestToken( "https://api.login.yahoo.com/oauth/v2/get_request_token"'oob' );

The error I'm getting is Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)

I have registered my API key and secret and verified that they are correct in the sample code.  I didn't touch anything else in the code.  Can someone please help me out with why I'm getting this exception.  It would be greatly appreciated.

4 Replies
  • I aslo having a same issue please anybody suggest me.its very urgent
    0
  • I am also getting the same issue using the sample code located here... http://developer.yahoo.com/fantasysports/guide/GettingStarted.html#GettingStarted-sample

    Were either of you able to figure this out?
    0
  • Actually. I partially fixed my issue. The time was off a bit on the server. I reset to the correct time and worked. 
    0
  • Has anyone been able to figure this out?  I am seeing the same error message with the test script
    0

Recent Posts

in Fantasy Sports API