- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
- 通话列表
创建群群发任务
POST
/api/v3/groupSend/addTask
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
users
array[string]
员工id
title
string
任务名称
sendType
integer
发送模式
sendTime
string
发送时间
sendInfo
object
发送内容
text
string
文本信息
sendData
array [object {14}]
任务内容
示例
{
"title": "测试0424154000001",
"sendTime": "2022-04-24 15:59:00",
"users": [
463352988837952
],
"sendInfo": {
"text": "测试群发1234512312312",
"sendData": {
"type": 99,
"mcId": "bbbfe85ba01711ecacc500163e106b20",
"title": "官网测一波",
"content": "大大滴",
"fileUrl": "https://dev.tanmarket.cn/fdfsServer/group3/M00/1B/22/rBHDsmIpXmWAdDwVAACFBkjOJ7o826.jpg",
"mcType": 2
}
},
"sendType": "1"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v3/groupSend/addTask' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "测试0424154000001",
"sendTime": "2022-04-24 15:59:00",
"users": [
463352988837952
],
"sendInfo": {
"text": "测试群发1234512312312",
"sendData": {
"type": 99,
"mcId": "bbbfe85ba01711ecacc500163e106b20",
"title": "官网测一波",
"content": "大大滴",
"fileUrl": "https://dev.tanmarket.cn/fdfsServer/group3/M00/1B/22/rBHDsmIpXmWAdDwVAACFBkjOJ7o826.jpg",
"mcType": 2
}
},
"sendType": "1"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2022-06-11 11:14:23