class Wework::Token::AppToken
Public Instance Methods
redis_key()
click to toggle source
# File lib/wework/token/app_token.rb, line 7 def redis_key @redis_key ||= Digest::MD5.hexdigest "WX_APP_TOKEN_#{client.corp_id}_#{client.secret}" end
refresh_token()
click to toggle source
# File lib/wework/token/app_token.rb, line 15 def refresh_token client.request.get 'gettoken', params: {corpid: client.corp_id, corpsecret: client.secret} end
token_key()
click to toggle source
# File lib/wework/token/app_token.rb, line 11 def token_key 'access_token' end