Class: Weibo::Strategy::AuthCode
- Inherits:
-
OAuth2::Strategy::AuthCode
- Object
- OAuth2::Strategy::AuthCode
- Weibo::Strategy::AuthCode
- Defined in:
- lib/weibo_focus/strategy/auth_code.rb
Instance Method Summary collapse
Instance Method Details
#get_token(code, params = {}, opts = {}) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/weibo_focus/strategy/auth_code.rb', line 4 def get_token(code, params={}, opts={}) params = {'grant_type' => 'authorization_code', 'code' => code, 'redirect_uri' => Weibo::Config.redirect_uri.to_s}.merge(client_params).merge(params) @client.get_and_restore_token(params, opts) end |