我想从developer.foursquare.com获取我的access_token和access_token_secret。我阅读并使用了
oauth_key = 'my_key'
oauth_secret = 'my_secret'
oauth = Foursquare::OAuth.new(oauth_key, oauth_secret)
request_token = oauth.request_token.token
request_secret = oauth.request_token.secret
我也尝试过了;
oauth_key = 'my_key'
oauth_secret = 'my_secret'
oauth = Foursquare::OAuth.new(oauth_key, oauth_secret)
oauth.request_token(:oauth_callback => "https://foursquare.com/oauth2/access_token")
request_token = oauth.request_token.token
request_secret = oauth.request_token.secret
但是当我运行我的项目时,我得到“OAuth :: Unauthorized(404 Not Found):”错误。我该如何解决?有没有人有任何想法?