- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
跟进客户任务-客户跟进
POST
/api/v3/customer-follow-task/save
1.发微信
2.发短信
3.打电话
4.拜访
5.其他
图片:文件不要超过2M,最多支持9张图片
视频:文件不超过5MB,仅支持1个
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
taskCode
integer
任务类型:
salesIds
array[integer]
指定执行员工
sopContents
array [object {8}]
任务数据
type
integer
任务内容类型
fileId
integer
文件ID
fileUrl
string
文件链接
mediaId
string
媒体ID
fileName
string
文件名称
content
string
任务内容参数
link
string
链接
titile
string
内容标题
startTime
string
发送开始时间
endTime
string
发送截止时间
customers
array [object {3}]
客户信息
salesId
integer
对应销售id
customerId
integer
客户id
customerName
string
客户名字
示例
{
"taskCode": 1,
"salesIds": [
463352988837952
],
"sopContents": [
{
"type": 2,
"fileId": 9173,
"fileURL": "https://dev.tanmarket.cn/fdfsServer/group3/M00/90/44/rBHTdWI8F_OAEVMYAAFWABr5UHw296.png",
"mediaId": "3BPfL85vzolL3WZcHW40O08_SsVgnDiM48IR-1VfZ7UPNKDqT7sEqutkWk63vwzaz",
"fileName": "Snipaste_2022-03-04_10-50-32.png"
},
{
"type": 1,
"content": "测试04141111"
}
],
"startTime": "2022-04-14 17:20",
"endTime": "2022-04-14 17:22",
"textarea": "",
"customers": [
{
"corpid": "ww9c5530210a0d5116",
"salesId": 463352988837952,
"customerId": 450458062432320,
"isCustomer": 1,
"customerName": "Main"
}
]
}
示例代码
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/customer-follow-task/save' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"taskCode": 1,
"salesIds": [
463352988837952
],
"sopContents": [
{
"type": 2,
"fileId": 9173,
"fileURL": "https://dev.tanmarket.cn/fdfsServer/group3/M00/90/44/rBHTdWI8F_OAEVMYAAFWABr5UHw296.png",
"mediaId": "3BPfL85vzolL3WZcHW40O08_SsVgnDiM48IR-1VfZ7UPNKDqT7sEqutkWk63vwzaz",
"fileName": "Snipaste_2022-03-04_10-50-32.png"
},
{
"type": 1,
"content": "测试04141111"
}
],
"startTime": "2022-04-14 17:20",
"endTime": "2022-04-14 17:22",
"textarea": "",
"customers": [
{
"corpid": "ww9c5530210a0d5116",
"salesId": 463352988837952,
"customerId": 450458062432320,
"isCustomer": 1,
"customerName": "Main"
}
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
示例
{
"code": 0,
"message": "success"
}
修改于 2023-01-04 10:03:21