- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
- 通话列表
创建手动发送SOP
POST
/api/v3/groupSop/addGroupCorporate
showTime:具体发送时间. 格式 HH:mm
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
groupInfos
array [object {2}]
群信息
chatId
string
群id
chatOwner
string
群主id
title
string
SOP名称
mode
integer
模式
sopContents
array [object {3}]
任务内容
showTime
string
发送时间
showDate
integer
第几天发送
sopDatas
array [object {14}]
任务内容
示例
{
"groupInfos": [
{
"chatId": "wrvRo3DwAAWTbx-K7XDplMusYYlHs_uw",
"chatOwner": "399653652604992"
},
{
"chatId": "wrvRo3DwAAnjo-sVKj5b8T1zecpRxV6w",
"chatOwner": "412770248998976"
}
],
"title": "API测试0424145100002",
"sopContents": [
{
"showDate": 5,
"showTime": "10:00",
"sopDatas": [
{
"type": 1,
"content": "#客户备注##客户昵称##员工姓名#"
},
{
"type": 99,
"mcId": "bbbfe85ba01711ecacc500163e106b20",
"title": "官网测一波",
"content": "大大滴",
"fileUrl": "https://dev.tanmarket.cn/fdfsServer/group3/M00/1B/22/rBHDsmIpXmWAdDwVAACFBkjOJ7o826.jpg",
"mcType": 2
},
{
"type": 3,
"fileName": "Snipaste_2022-03-03_17-04-37.png",
"fileUrl": "https://dev.tanmarket.cn/fdfsServer/group3/M00/90/44/rBHTdWI8GgSAEruhAAOznwRlgDY036.png",
"mediaId": "31sRwaYurqxKSKaJG_OOkZ_h_CB2D4g3BIdsn4t9x7KnpIBQjD3XbjQLvpdP0upj0",
"fileId": 9176,
"link": "https://ww.tm.com",
"title": "这是一个链接"
}
]
}
],
"mode": 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/groupSop/addGroupCorporate' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"groupInfos": [
{
"chatId": "wrvRo3DwAAWTbx-K7XDplMusYYlHs_uw",
"chatOwner": "399653652604992"
},
{
"chatId": "wrvRo3DwAAnjo-sVKj5b8T1zecpRxV6w",
"chatOwner": "412770248998976"
}
],
"title": "API测试0424145100002",
"sopContents": [
{
"showDate": 5,
"showTime":"10:00",
"sopDatas": [
{
"type": 1,
"content": "#客户备注##客户昵称##员工姓名#"
},{
"type": 99,
"mcId": "bbbfe85ba01711ecacc500163e106b20",
"title": "官网测一波",
"content": "大大滴",
"fileUrl": "https://dev.tanmarket.cn/fdfsServer/group3/M00/1B/22/rBHDsmIpXmWAdDwVAACFBkjOJ7o826.jpg",
"mcType": 2
},{
"type": 3,
"fileName": "Snipaste_2022-03-03_17-04-37.png",
"fileUrl": "https://dev.tanmarket.cn/fdfsServer/group3/M00/90/44/rBHTdWI8GgSAEruhAAOznwRlgDY036.png",
"mediaId": "31sRwaYurqxKSKaJG_OOkZ_h_CB2D4g3BIdsn4t9x7KnpIBQjD3XbjQLvpdP0upj0",
"fileId": 9176,
"link": "https://ww.tm.com",
"title": "这是一个链接"
}
]
}
],
"mode": 1
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2022-06-11 11:45:08