1
독서에 관한 내용은 oauth tutorial입니다.옴니아 우스와 같은 일을하는 방법
나는 Omniauth gem을 사용하여 Twitter의 API에서 액세스 토큰을 얻는 것과 똑같이하고 싶습니다.
#oauth = OAuth::Consumer.new(APP_CONFIG['twitter_consumer_key'], APP_CONFIG['twitter_consumer_secret'], :site => 'http://api.twitter.com', :request_endpoint => 'http://api.twitter.com', :sign_in => true)
# Get the request tokens from the API
rt = oauth.get_request_token
rtoken = rt.token # request token
rsecret = rt.secret # request token secret
# Go to url and click ""Allow access” when prompted
# http://api.twitter.com/oauth/authorize?oauth_token=your_request_token_from_above
# Get the access tokens from the API
at = rt.get_access_token
oauth_token = at.token
oauth_token_secret = at.secret
누구나 달성 할 수있는 방법을 알고 계십니까? 여기