9.1 创建旅程(即将废弃)
POST
https://openapi.weiling.cn/openapi/event/create请求参数
Query 参数
access_token
string
必需
获取到的凭证,最长为512字节
Body 参数application/json
id
string
必需
对象id(type = 0 线索 type=1企微好友 )
type
integer
必需
0手机号线索 1企微好友
event_list
object
必需
index
integer
从0开始,不可重合
title
string
标题
content
string
内容
create_time
integer
必需
创建时间,13位时间戳,精确到秒
create_user_id
string
创建人
示例
{
"id": "xxx",
"type": 1,
"event_list": [
{
"index": 0,
"title": "xxx",
"content": "xxx",
"create_time": 1609430400000,
"create_user_id": "xxx"
},
{
"index": 1,
"title": "xxx",
"content": "xxx",
"create_time": 1609430400000,
"create_user_id": "xxx"
}
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
msg
string
返回结果信息
code
integer
必需
返回结果码值-0:请求成功 500 系统错误
data
object
必需
fail_list
array [object {3}]
失败动态列表
success_list
array [object {2}]
创建成功线索列表
示例
{
"msg": "consectetur proident anim magna labore",
"code": 0,
"data": {
"fail_list": [
{
"id": "38",
"error_msg": "tempor incididunt",
"error_code": 51,
"type": 48
},
{
"type": 87,
"error_code": 95,
"error_msg": "veniam labore",
"id": "44"
},
{
"error_code": 82,
"error_msg": "ex eiusmod",
"id": "98",
"type": 4
},
{
"error_code": 72,
"type": 9,
"id": "89",
"error_msg": "ut"
}
],
"success_list": [
{
"type": 60,
"error_code": 72,
"id": "89"
},
{
"error_code": 52,
"type": 14,
"id": "86"
},
{
"type": 24,
"error_code": 62,
"id": "46"
},
{
"type": 72,
"error_code": 38,
"id": "90"
},
{
"error_code": 81,
"type": 57,
"id": "79"
}
]
}
}
最后修改时间: 14 天前