Class: TreezorConnect::Oauth::Token
- Inherits:
-
Object
- Object
- TreezorConnect::Oauth::Token
- Defined in:
- lib/treezor_connect/resources/oauth/token.rb
Class Method Summary collapse
Class Method Details
.create(params = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/treezor_connect/resources/oauth/token.rb', line 7 def create(params = {}) oauth_client.client_credentials.get_token({ grant_type: 'delegated_end_user', client_id: TreezorConnect.client_id, client_secret: TreezorConnect.client_secret, username: params[:username], password: params[:password], sca: params[:sca] }).token end |