Method: Weibo2::Strategy::AuthCode#get_token

Defined in:
lib/weibo2/strategy/auth_code.rb

#get_token(code, params = {}, opts = {}) ⇒ Object

Note:

that you must also provide a :redirect_uri with most OAuth 2.0 providers

Retrieve an access token given the specified validation code.



22
23
24
25
# File 'lib/weibo2/strategy/auth_code.rb', line 22

def get_token(code, params={}, opts={})
  params = {:redirect_uri => @client.redirect_uri}.merge(params)
  super(code, params, opts)
end