Hi, I'm new to the Yahoo APIs, so sorry in advance if this is a common question. I'm trying to programmatically connect to the new firehose API. I used the console to build a test query and it gave me the url:
"http://query.yahooapis.com/v1/yql?q=select%20*%20from%20social.updates.search%20where%20query%3D%22iceland%22&diagnostics=true"
I then went and created a project with a consumer key of type "OAuth Application" with permissions set to
"All public APIs, Web Services, or RSS feeds including those provided by Yahoo!"
key = "dj0yJmk9Z2VMcG9TTXpuRXMyJmQ9WVdrOVdFSm1lVWs0TkRJbWNHbzlNakV4TURRMU5EWTJNZy0
tJnM9Y29uc3VtZXJzZWNyZXQmeD0zNA--"
But when I plug the key, the secret & the url into some existing oauth code, that works with other endpoints, I get back an error message:
<yahoo:description>Please provide valid credentials</yahoo:description>
If you can deal with a Ruby object dump, the request object looks like:
>> request.to_hash
=> {"accept"=>["*/*"], "user-agent"=>["OAuth gem v0.3.6"], "connection"=>["close"], "authorization"=>["OAuth oauth_nonce=\"d0D4DyugcpjDYfPAUVy6gPHbhlkP0gCCdyuMdxavwk\", oauth_signature_method=\"HMAC-SHA1\", oauth_timestamp=\"1271877158\", oauth_consumer_key=\"dj0yJmk9Z2VMcG9TTXpuRXMyJmQ9WVdrOVdFSm1lVWs0TkRJbWNHbzlNakV4TURRMU5EWTJNZy0
tJnM9Y29uc3VtZXJzZWNyZXQmeD0zNA--\", oauth_signature=\"ycm5V%2BXmdU861gMc%2Fn53FWlZPF8%3D\", oauth_version=\"1.0\""], "host"=>["query.yahooapis.com"]}
Oddly, I get the exact same error message if I try to load that url via curl without any oauth at all.
Any ideas what I'm doing wrong?
Thanks,
-Chris
by
3 Replies