Based on this working example: http://paul.donnelly.org/demos/oauth.htm
I tried to do the same thing from Ruby with the oauth gem, but I get "signature_invalid":
require 'oauth'
key = "dj0yJmk9Rm1MUU9iWmdNZ2FjJmQ9WVdrOVZWWk9Wa3h5TldFbWNHbzlNVEk0TXpNMk1EYzFPQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1kMg--"
secret = "570e2ef3db460b114e6a0a987709a0f6a90b5ec0"
consumer = OAuth::Consumer.new(key, secret, :site => "http://query.yahooapis.com")
access_token = OAuth::AccessToken.new(consumer)
r = access_token.get("/v1/yql?q=select%20*%20from%20search.news%20where%20query%3D%22obama%22&format=json&callback=myCallback")
p r.body
produces:
oauth-0.3.6/lib/oauth/consumer.rb:167:inrequest': signature_invalid (OAuth::Problem)
Perhaps I'm just forming the request improperly. Any ideas?
Based on this working example: http://paul.donnelly.org/demos/oauth.htm
I tried to do the same thing from Ruby with the oauth gem, but I get "signature_invalid":
produces:
oauth-0.3.6/lib/oauth/consumer.rb:167:inrequest': signature_invalid (OAuth::Problem)Perhaps I'm just forming the request improperly. Any ideas?