You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run this as a script or past it into a rails console I get:
/usr/lib/ruby/gems/1.8/gems/oauth-0.4.0/lib/oauth/consumer.rb:215:in token_request': 401 Unauthorized (OAuth::Unauthorized) from /usr/lib/ruby/gems/1.8/gems/oauth-0.4.0/lib/oauth/tokens/request_token.rb:18:inget_access_token'
from /usr/lib/ruby/gems/1.8/gems/foursquare-0.3.1/lib/foursquare.rb:40:in `authorize_from_request'
from 4square.rb:19
I am thinking this is something to do with the verifier?
Not sure what that is....
Thanks in advance!
Mark
The text was updated successfully, but these errors were encountered:
this is probably a stupid question...but...
I am trying to access foursquare using your gem as such
require 'rubygems'
require 'foursquare'
oauth_key = 'some_real_key'
oauth_secret = 'some_real_secret'
oauth = Foursquare::OAuth.new(oauth_key, oauth_secret)
request_token = oauth.request_token.token
request_secret = oauth.request_token.secret
redirecting user to foursquare to authorize
oauth.request_token.authorize_url
foursquare redirects back to your callback url, passing the verifier in the url params
verifier = 'test app'
access_token, access_secret = oauth.authorize_from_request(request_token, request_secret, verifier)
When I run this as a script or past it into a rails console I get:
/usr/lib/ruby/gems/1.8/gems/oauth-0.4.0/lib/oauth/consumer.rb:215:in
token_request': 401 Unauthorized (OAuth::Unauthorized) from /usr/lib/ruby/gems/1.8/gems/oauth-0.4.0/lib/oauth/tokens/request_token.rb:18:in
get_access_token'from /usr/lib/ruby/gems/1.8/gems/foursquare-0.3.1/lib/foursquare.rb:40:in `authorize_from_request'
from 4square.rb:19
I am thinking this is something to do with the verifier?
Not sure what that is....
Thanks in advance!
Mark
The text was updated successfully, but these errors were encountered: