0

is query.yahooapis.com/v1/yql broken?

I am using the developer console: http://developer.yahoo.com/yql/console

My query is "SELECT * from social.contacts WHERE guid=me"

It works good in the developer console.  At the bottom of the page it says "THE REST QUERY" and gives this link: 
http://query.yahooapis.com/v1/yql?q=SELECT%20*%20from%20social.contacts%20WHERE%20guid%3Dme 

The query in the console works but the query.yahooapis.com/v1/yql link does not work.  It has the error:
Please provide valid credentials. OAuth oauth_problem="OST_OAUTH_PARAMETER_ABSENT_ERROR", realm="yahooapis.com"

by
4 Replies
  • <br><br><div class="quote "><div class="quotetop ">QUOTE<cite>(Josh @ 3 Aug 2011 3:21 PM)</cite><blockquote class="quotemain">I am using the developer console:&nbsp;<a href="http://developer.yahoo.com/yql/console">http://developer.yahoo.com/yql/console</a><br><br>My query is &quot;SELECT * from social.contacts WHERE guid=me&quot;<br><br>It works good in the developer console. &nbsp;At the bottom of the page it says &quot;THE REST QUERY&quot; and gives this link:&nbsp;<br>http://query.yahooapis.com/v1/yql?q=SELECT%20*%20from%20social.contacts%20WHERE%20guid%3Dme&nbsp;<br><br>The query in the console works but the query.yahooapis.com/v1/yql link does not work. &nbsp;It has the error:<br><span style="font-family:monospace;line-height:normal;">Please provide valid credentials. OAuth oauth_problem=&quot;OST_OAUTH_PARAMETER_ABSENT_ERROR&quot;, realm=&quot;yahooapis.com&quot;<br></span></blockquote><br>You have to access with oauth.<br><br></div></div>
    0
  • pls reply this solution
    0
  • Hi Josh,

    social.contacts contains user data which requires Oauth in order to access. You can tell if a table requires Oauth if it uses the /v1/yql. Tables that use the /v1/public/yql endpoint won't require Oauth.

    To use Oauth, you must first apply for a Yahoo! Application Consumer Key, which you can generate by creating a new project. You must then traverse the Oauth Authorization flow to obtain a valid Oauth token that you can use to make calls to social.contact. 

    There are various libraries that can help you acquire an Oauth token from Yahoo! easier.

    Best,
    Daniel
    0
  • Fantastic

    0

Recent Posts

in YQL