Create DingTalk Object
Command Description
Create a DingTalk object, which is required for all subsequent operations on DingTalk
Command Prototype
DingTalkObject = DingTalk.Create(agent_id, app_key, app_secret)
Command parameter
parameter | mandatory | type | default value | Instructions |
---|---|---|---|---|
agent_id | True | string | "" | On DingTalk, each application has a unique AgeneId, which can be obtained in the DingTalk management backend. Please refer to the specific method for more informationhere |
app_key | True | string | "" | On DingTalk, each application has an independent AppKey, which can be obtained in the DingTalk management backend. For specific methods, please refer tohere |
app_secret | True | string | "" | On DingTalk, each application has an independent AppSecret, which can be obtained in the DingTalk management backend. For specific methods, please refer tohere |
Return result
Return_obj, Assign the result of running the command to this variable.
Run instance
/********************************* Create DingTalk Object **************************************
Command Prototype:
DingTalkObject = DingTalk.Create(agent_id, app_key, app_secret)
Input Parameters:
agent_id -- AgentId. Note: Each application has a unique AgentId on DingTalk. This information can be obtained from the DingTalk management backend. For specific methods, please refer <a href="https://url-redirection.laiye.com/enterprise-im-dingtalk">here</a>.
app_key -- AppKey. Note: Each application has an independent AppKey on DingTalk. This information can be obtained from the DingTalk management backend. For specific methods, please refer <a href="https://url-redirection.laiye.com/enterprise-im-dingtalk">here</a>.
app_secret -- AppSecret. Note: Each application has an independent AppSecret on DingTalk. This information can be obtained from the DingTalk management backend. For specific methods, please refer <a href="https://url-redirection.laiye.com/enterprise-im-dingtalk">here</a>.
Output Parameters:
return_obj -- Variable to store the output of the function call.
Important Notes:
None
********************************************************************************/
Dim return_obj = ""
DingTalkObject = DingTalk.Create("", "", "")
TracePrint(return_obj)