Class: Lark::TokenStore::IsvAppToken
- Defined in:
- lib/lark/token_store/isv_app_token.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, #token, #update_token, #valid?
Constructor Details
This class inherits a constructor from Lark::TokenStore::Base
Instance Method Details
#fetch_token ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/lark/token_store/isv_app_token.rb', line 10 def fetch_token client.request.post 'auth/v3/app_access_token/', { app_id: client.app_id, app_secret: client.app_secret, app_ticket: client.app_ticket } end |
#token_key ⇒ Object
6 7 8 |
# File 'lib/lark/token_store/isv_app_token.rb', line 6 def token_key 'app_access_token' end |