Class: Dingtalk::Api::OapiGettokenRequest

Inherits:
Base
  • Object
show all
Defined in:
lib/dingtalk/api/OapiGettokenRequest.rb

Overview

get token

Instance Attribute Summary collapse

Attributes inherited from Base

#__domain, #__path, #__port

Instance Method Summary collapse

Methods inherited from Base

#computeSignature, #getApiPath, #getApplicationParameters, #getCanonicalStringForIsv, #getMultipartParas, #getRequestHeader, #getTranslateParas, #initialize

Constructor Details

This class inherits a constructor from Dingtalk::Api::Base

Instance Attribute Details

#appkeyObject

Returns the value of attribute appkey.



5
6
7
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 5

def appkey
  @appkey
end

#appsecretObject

Returns the value of attribute appsecret.



5
6
7
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 5

def appsecret
  @appsecret
end

Instance Method Details

#getapinameObject



11
12
13
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 11

def getapiname
  'dingtalk.oapi.gettoken'
end

#getHttpMethodObject



7
8
9
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 7

def getHttpMethod
  'GET'
end

#getResponseObject



15
16
17
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 15

def getResponse
  super.fetch('access_token', '')
end