Class: Moneylovercli::Api::AccessToken

Inherits:
Base
  • Object
show all
Defined in:
lib/moneylovercli/api/access_token.rb

Instance Attribute Summary

Attributes inherited from Base

#token

Instance Method Summary collapse

Instance Method Details

#access_token(authorization_token:, client:, email:, password:) ⇒ Object



13
14
15
16
# File 'lib/moneylovercli/api/access_token.rb', line 13

def access_token(authorization_token:, client:, email:, password:)
  self.class.post('/token', body: { email: email, password: password },
                            headers: { authorization: "Bearer #{authorization_token}", client: client })
end