Module: ChatWork::OAuthClient::TokenMethods
- Included in:
 - ChatWork::OAuthClient
 
- Defined in:
 - lib/chatwork/oauth_client/token_methods.rb
 
Instance Method Summary collapse
- 
  
    
      #refresh_access_token(refresh_token, scope = [])  ⇒ Hash 
    
    
  
  
  
  
  
  
  
  
  
    
refresh access_token with refresh_token.
 
Instance Method Details
#refresh_access_token(refresh_token, scope = []) ⇒ Hash
refresh access_token with refresh_token
      16 17 18 19 20 21 22 23 24  | 
    
      # File 'lib/chatwork/oauth_client/token_methods.rb', line 16 def refresh_access_token(refresh_token, scope = []) params = { grant_type: "refresh_token", refresh_token: refresh_token, } params[:scope] = scope.join(" ") unless scope.empty? post("/token", params) end  |