CreateSNSDingTalkEndpoint
Creates a DingTalk endpoint, which is a DingTalk robot. For example,
CreateSNSDingTalkEndpoint name=dingding url=https://oapi.dingtalk.com/robot/send?access_token=128f268950234c6c2f065fe88be6cc26d780e9d9863d63eae12be831605345 atPersonPhoneNumbers=+86-12900010002,+86-13977889933
Parameters
| Name | Description | Optional | Valid Value | Starting Version |
|---|---|---|---|---|
| url | The webhook URL of the DingTalk robot. | 2.3 | ||
| atAll | Whether to notify all (@All) members in a DingTalk group. | Yes | 2.3 | |
| atPersonPhoneNumbers | The phone number of the group member to be notified (the @member). | Yes | 2.3 | |
| name | The resource name. | 2.3 | ||
| description | The detailed description of the resource. | Yes | 2.3 | |
| resourceUuid | Yes | 2.3 | ||
| platformUuid | Yes | 2.3 | ||
| userTags | The user tags. For more information, see CreateUserTag. | Yes | 2.3 | |
| systemTags | The system tags. For more information, see CreateSystemTag. | Yes | 2.3 | |
| tagUuids | The tag UUID list. | Yes | 5.0.0 | |
| secret | The DingTalk secret key. | Yes | 5.0.0 | |
| atPersonList | The @person information. (Recommend) | Yes | 5.0.0 | |
| timeout | Yes |
{
"inventory": {
"atAll": false,
"atPersonPhoneNumbers": [
"+86-12900010002",
"+86-13977889933"
],
"createDate": "Jan 25, 2018 9:11:00 PM",
"lastOpDate": "Jan 25, 2018 9:11:00 PM",
"name": "dingding",
"platformUuid": "02d24b9b0a7f4ee1846f15cda248ceb7",
"state": "Enabled",
"type": "DingTalk",
"url": "https://oapi.dingtalk.com/robot/send?access_token=128f268950234c6c2f065fe88be6cc26d780e9d9863d63eae12be831605345",
"uuid": "2663ecb5356a4fbeb6cde202b2e6eaf1"
},
"success": true
}
- url: the webhook URL of the DingTalk robot
- atAll: If set to true, all members in the DingTalk group will
be notified after a message is sent through DingTalk, and the
atPersonPhoneNumbersparameter will be ignored. - atPersonPhoneNumbers: the phone number of the group member to be notified (the
@member). DingTalk is registered with a phone number, through which you can
notify (@) members in a target DingTalk group.
Note: DingTalk displays phone
numbers with country calling codes. You can check a complete phone number,
such as +86-18977550789, by clicking the profile icon in
DingTalk.
