Sha256: 4e2b8af7c206260f0121cac470c8ea9558be9f03b8a8ab070012d577e0e5a4db
Contents?: true
Size: 451 Bytes
Versions: 16
Compression:
Stored size: 451 Bytes
Contents
require 'wework/token/base' module Wework module Token class ProviderToken < Base def redis_key @redis_key ||= Digest::MD5.hexdigest "WX_PROVIDER_TOKEN_#{client.corp_id}_#{client.secret}" end def token_key 'provider_access_token' end def refresh_token client.request.post 'service/get_provider_token', {corpid: client.corp_id, provider_secret: client.secret} end end end end
Version data entries
16 entries across 16 versions & 2 rubygems