Class: Lark::TokenStore::AppToken

Inherits:
Base
  • Object
show all
Defined in:
lib/lark/token_store/app_token.rb

Instance Attribute Summary

Attributes inherited from Base

#client

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_tokenObject



10
11
12
13
14
15
# File 'lib/lark/token_store/app_token.rb', line 10

def fetch_token
  client.request.post 'auth/v3/app_access_token/internal/', {
    app_id: client.app_id,
    app_secret: client.app_secret
  }
end

#token_keyObject



6
7
8
# File 'lib/lark/token_store/app_token.rb', line 6

def token_key
  'app_access_token'
end