开发者

Get request_token and request_secret from Foursquare

开发者 https://www.devze.com 2023-04-10 07:37 出处:网络
I want to get my access_token and access_token_secret from developer.foursquare.com. I read and used

I want to get my access_token and access_token_secret from developer.foursquare.com. I read and used

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

also I have tried;

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

but when I run my project I get "OAuth::Unauthorized (404 Not Found):" error. How can I solv开发者_如何学Pythone it? Does anyone have any idea?

0

精彩评论

暂无评论...
验证码 换一张
取 消