Class: Dingtalk::Api::OapiGettokenRequest
- Defined in:
- lib/dingtalk/api/OapiGettokenRequest.rb
Overview
get token
Instance Attribute Summary collapse
-
#appkey ⇒ Object
Returns the value of attribute appkey.
-
#appsecret ⇒ Object
Returns the value of attribute appsecret.
Attributes inherited from Base
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
#appkey ⇒ Object
Returns the value of attribute appkey.
5 6 7 |
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 5 def appkey @appkey end |
#appsecret ⇒ Object
Returns the value of attribute appsecret.
5 6 7 |
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 5 def appsecret @appsecret end |
Instance Method Details
#getapiname ⇒ Object
11 12 13 |
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 11 def getapiname 'dingtalk.oapi.gettoken' end |
#getHttpMethod ⇒ Object
7 8 9 |
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 7 def getHttpMethod 'GET' end |
#getResponse ⇒ Object
15 16 17 |
# File 'lib/dingtalk/api/OapiGettokenRequest.rb', line 15 def getResponse super.fetch('access_token', '') end |