0

YQL Social.profile Query Returning 403 Forbidden


Can someone tell me why the following query will work within the YQL Console:

'SELECT * FROM social.profile WHERE email="joestier3@yahoo.com"';

[link]
http://developer.yahoo.com/yql/console/#h=%20SELECT%20*%20FROM%20social.profile%20WHERE%20email%3D%22joestier3@yahoo.com%22


But the same query will not work when I run it using the PHP API?

Here is the response I get:
stdClass Object (     [query] => stdClass Object         (             ...             [diagnostics] => stdClass Object                 (                     [publiclyCallable] => false                     [redirect] => stdClass Object                         (...)
                    [url] => stdClass Object                         (                             [execution-start-time] => 434                             [execution-stop-time] => 564                             [execution-time] => 130                             [http-status-code] => 403                             [http-status-message] => Forbidden                             [content] => http://social.yahooapis.com/v1/users.email(jmcgraw77%40yahoo.com)/profile;start=0;count=10?format=json                         )
                    [user-time] => 564                     [service-time] => 130                     [build-version] => 24126                 )
            [results] =>          ) )

2 Replies
  • Hi did you find a solution to this problem ?

    i am running into the same issue
    0
  • Hello,
    It works in the YQL Console coz we are able to authenticate the user from the Yahoo Cookies, coz of the same yahoo.com domain.
    And it doesnt work from the yahooapis.com coz the yahooapis.com domain doesnt get the yahoo cookies.
    Thanks
    0

Recent Posts

in YQL