基础数据类接口
运营号配置
接口URL:WeCaht
请求方式:Get
Headers:
access_token:token
Content-type: text/json
###### 其他参数参考Headers说明
请求参数
参数名 | 数据类型 | 是否必须 | 说明 |
---|---|---|---|
ad_wechat_lei | int | 否 | 0(默认0;0=个微、3=企微) |
请求示例
接收返回结果
{
"errmsg": 20000,
"succeed": true,
"msgTime": "2018-05-11T15:40:14.1523923+08:00",
"values": [
{
"ad_wechat_id": 135389,
"ad_wechat_nober": "微信号",
"ad_wechat_nick": "昵称",
"ad_wechat_qrcode":"二维码",
"ad_wechat_addtime": "添加时间",
"ad_original_nober": "原始微信号",
"ad_wechat_usercode": null,
"ad_wechat_viewnum": 0,
"ad_wechat_vnumday": 0,
"ad_wechat_vnumlday": 0,
"ad_wechat_rfriend": 0,
"ad_wechat_friend": 1709,
"ad_wechat_group": 23,
"ad_wechat_weight": 0,
"ad_wechat_friends": true,
"ad_wechat_chat": true,
"ad_state": null,
"ad_wechat_nickname": "刘潇",
"ad_wechat_initiative": false,
"ad_wechat_passive": false,
"ad_wechat_y3": true,
"ad_receive_code": null,
"ad_key_code": null,
"ad_chatroom_code": null,
"ad_wechat_push": true,
"ad_wechat_new": 1705,
"is_receiveaddfriendtask": 1,
"ad_wechat_lei": 0,
"ad_wechat_record": false,
"imei": null
}
]
}
返回结果说明
参数名 | 数据类型 | 说明 |
---|---|---|
ad_wechat_id | int | 运营号编号 |
ad_wechat_nober | string | 微信号 |
ad_wechat_nick | string | 机号, |
ad_wechat_qrcode | string | 二维码 |
ad_wechat_addtime | datetime | 添加时间 |
ad_original_nober | string | 运营号原始微信号 |
ad_wechat_friend | int | 好友数量(含被动删除和被动拉黑) |
ad_wechat_group | int | 群总数 |
ad_wechat_friends | bool | 运营号监控授权 |
ad_wechat_nickname | string | 微信昵称 |
ad_receive_code | string | 异常通知员工 |
ad_key_code | string | 关键字通知员工 |
ad_chatroom_code | string | 好友申请消息通知员工 |
ad_wechat_push | bool | 推送授权 |
is_receiveaddfriendtask | int | 是否开启加粉任务(0否,1是) |
ad_wechat_lei | int | 0微信号,1公账号,2小程序 |
ad_wechat_record | bool | 工作手机通话记录授权 |
imei | string | 运营号登录手机唯一码 |
ad_wechat_usercode | string | 弃用 |
ad_wechat_viewnum | int | 弃用 |
ad_wechat_vnumday | int | 弃用 |
ad_wechat_vnumlday | int | 弃用 |
ad_wechat_rfriend | int | 弃用 |
ad_wechat_weight | int | 弃用 |
ad_wechat_chat | bool | 弃用 |
ad_state | string | 弃用 |
ad_wechat_initiative | bool | 弃用 |
ad_wechat_passive | bool | 弃用 |
ad_wechat_y3 | bool | 弃用 |
ad_wechat_new | int | 弃用 |
员工配置
接口URL:staff
请求方式:Get
Headers:
access_token:token
Content-type: text/json
其他参数参考Headers说明
请求参数
参数名 | 数据类型 | 是否必须 | 说明 |
---|---|---|---|
ad_staff_state | int | 否 | 员工状态(-1所有,0启用,1停用,默认值-1) |
ad_staff_code | string | 否 | 员工号 |
ad_staff_name | string | 否 | 员工姓名 |
ad_staff_addtime | string | 否 | 员工添加时间 |
请求示例
接收返回结果
返回参数:
{
"errmsg": 20000,
"succeed": true,
"msgTime": "2019-11-05T20:43:44.6250063+08:00",
"values": [
{
"ad_staff_code": "b01",
"ad_staff_name": "b01",
"ad_staff_state": 1,
"ad_self_user": "b08"
}
]
}
返回结果说明
参数名 | 数据类型 | 说明 |
---|---|---|
ad_staff_code | string | 员工号 |
ad_staff_name | string | 员工名称 |
ad_staff_state | string | 员工状态(0启用,1停用) |
ad_self_user | string | 绑定的自有订单用户名 |
标签分类
接口URL:/Label
请求方式:Get
Headers:
access_token:token
Content-type: text/json
###### 其他参数参考Headers说明
请求参数
请求示例
接收返回结果
{
"errmsg": 20000,
"succeed": true,
"msgTime": "2021-03-30T16:49:01.7151839+08:00",
"values": [
{
"ad_label_id": 263,
"ad_label_name": "A.客户级别",
"ad_choose": 0
}
],
"errdesc": null
}
返回结果说明
参数名 | 数据类型 | 说明 |
---|---|---|
ad_label_id | int | 标签分类编号 |
ad_label_name | stirng | 标签分类名称 |
ad_choose | int | 0或者1(0单选,1多选) |
标签配置
接口URL:wecahtlabel
请求方式:Get
Headers:
access_token:token
Content-type: text/json
其他参数参考Headers说明
请求参数
参数名 | 数据类型 | 是否必须 | 说明 |
---|---|---|---|
categories | int | 否 | -1(默认-1查询所有,其他可以传入大类编号(ad_label_id)获得所属的分类详细列表) |
请求示例
接收返回结果
{
"errmsg": 20000,
"succeed": true,
"msgTime": "2018-05-11T15:40:14.1523923+08:00",
"values": [
{
"ad_label_info_id": 1158,
"ad_label_info_name": "测试超长标签添加测试超长标签添加测试超长标签添加",
"ad_label_id": 189,
"ad_label_time": "2018-01-18T21:17:35.613849+08:00",
"merchant_id": null,
"ad_label_name": "客户意向",
"ad_choose": 0
},
{
"ad_label_info_id": 1072,
"ad_label_info_name": "潜在",
"ad_label_id": 189,
"ad_label_time": "2018-01-05T11:53:23.580502+08:00",
"merchant_id": null,
"ad_label_name": "客户意向",
"ad_choose": 0
},
{
"ad_label_info_id": 1071,
"ad_label_info_name": "成交",
"ad_label_id": 189,
"ad_label_time": "2018-01-05T11:53:10.641563+08:00",
"merchant_id": null,
"ad_label_name": "客户意向",
"ad_choose": 0
},
{
"ad_label_info_id": 991,
"ad_label_info_name": "零售",
"ad_label_id": 1,
"ad_label_time": "2017-12-08T10:43:22.802228+08:00",
"merchant_id": null,
"ad_label_name": "职务",
"ad_choose": 0
},
{
"ad_label_info_id": 976,
"ad_label_info_name": "炒股",
"ad_label_id": 1,
"ad_label_time": "2017-12-07T10:24:22.527081+08:00",
"merchant_id": null,
"ad_label_name": "职务",
"ad_choose": 0
}
]
}
返回结果说明
参数名 | 数据类型 | 说明 |
---|---|---|
ad_label_info_id | int | 976(标签详细编号) |
ad_label_info_name | stirng | 炒股(标签名字) |
ad_label_id | string | 1(标签分类) |
ad_label_name | string | 职务(标签分类名称) |
ad_choose | int | 0或者1(0单选,1多选) |
投放组配置
请求地址:AdManage
请求方式:Get
Headers:
access_token:token
Content-type: text/json
###### 其他参数参考Headers说明
请求参数
请求示例
接收返回结果
{
"errmsg": 20000,
"succeed": true,
"msgTime": "2019-09-29T20:45:05.1353996+08:00",
"values": [
{
"ad_brand_id": 155,
"ad_brand_name": "12",
"ad_brand_code": "21",
"ad_brand_welist": "[\"3516\", \"3521\"]",
"merchantid": "640462692",
"ad_wechat_nick": "P05(dong23287),P04(mioz888)",
"wechats": "[{\"ad_wechat_nober\" : \"dong23287\", \"ad_wechat_qrcode\" : \"http://7nimg.agsoft.net/wxid_w4ebc6txje6622mmqrcode1568877590436.png\"}, {\"ad_wechat_nober\" : \"mioz888\", \"ad_wechat_qrcode\" : \"http://7nimg.agsoft.net/wxid_9g3nmp3wywf622mmqrcode1568711034785.png\"}]",
"ad_brand_region_code": "360800"
},
{
"ad_brand_id": 151,
"ad_brand_name": "景田百岁山广告",
"ad_brand_code": "001",
"ad_brand_welist": "[]",
"merchantid": "640462692",
"ad_wechat_nick": null,
"wechats": null,
"ad_brand_region_code": "440100"
}
]
}
返回结果说明
参数名 | 数据类型 | 说明 |
---|---|---|
ad_brand_id | int | 投放组编号 |
ad_brand_name | string | 投放组名称 |
ad_brand_code | string | 投放组代号 |
ad_brand_welist | json数组 | 投放组微信号惟一标识集合 |
merchantid | string | 商家编号 |
ad_wechat_nick | string | 机号(微信号)叠加集合 |
wechats | json数组 | ad_wechat_nober(微信号),ad_wechat_qrcode(二维码) |
ad_brand_region_code | string | 行政区划代码 |
好友自定义属性配置
请求地址:friend/GetCustomAttributeList
请求方式:Get
Headers:
access_token:token
Content-type: text/json
###### 其他参数参考Headers说明
请求参数
请求示例
接收返回结果
{
"errmsg": 20000,
"succeed": true,
"msgTime": "2020-06-24T17:04:11.6360253+08:00",
"values": [
{
"id": "15",
"sort": 1,
"merchantId": null,
"customName": "住址",
"customType": 1,
"customLength": 20,
"customIsred": false,
"customAddtime": "2019-08-09T15:42:30.946993+08:00",
"customAddtimeStr": "2019-08-09 15:42:30",
"customValJsonStr": [],
"customDateformat": "YYYY-MM-DD",
"customVal": "[]"
},
{
"id": "14",
"sort": 1,
"merchantId": null,
"customName": "爱好",
"customType": 4,
"customLength": 0,
"customIsred": false,
"customAddtime": "2019-07-26T10:18:08.189804+08:00",
"customAddtimeStr": "2019-07-26 10:18:08",
"customValJsonStr": [
{
"key": "足球",
"value": "1"
},
{
"key": "篮球",
"value": "2"
},
{
"key": "游泳",
"value": "3"
}
],
"customDateformat": "YYYY-MM-DD",
"customVal": "[{\"key\": \"足球\", \"value\": \"1\"}, {\"key\": \"篮球\", \"value\": \"2\"}, {\"key\": \"游泳\", \"value\": \"3\"}]"
},
{
"id": "13",
"sort": 1,
"merchantId": null,
"customName": "结婚纪念日",
"customType": 2,
"customLength": 0,
"customIsred": false,
"customAddtime": "2019-07-26T10:16:12.899589+08:00",
"customAddtimeStr": "2019-07-26 10:16:12",
"customValJsonStr": [],
"customDateformat": "YYYY-MM-DD",
"customVal": "[]"
},
{
"id": "12",
"sort": 1,
"merchantId": null,
"customName": "专业",
"customType": 1,
"customLength": 50,
"customIsred": false,
"customAddtime": "2019-07-26T10:15:48.139436+08:00",
"customAddtimeStr": "2019-07-26 10:15:48",
"customValJsonStr": [],
"customDateformat": "YYYY-MM-DD",
"customVal": "[]"
}
],
"errdesc": null
}
返回结果说明
参数名 | 数据类型 | 说明 |
---|---|---|
id | int | 属性编号 |
customName | string | 字段名称 |
sort | int | 字段排序 |
merchantId | string | 商家编号 |
customType | string | 字段类型(1、文本框 2、日期框、3、单选框 4、多选框) |
customLength | int | 字段长度 |
customIsred | int | 是否必填(true是,false否) |
customAddtime | datetime | 添加时间 |
customAddtimeStr | datetime | 添加时间格式化后的时间 |
customValJsonStr | object | json数组,多选框,单选框的值 |
customDateformat | string | 日期框日期格式 |
customVal | string | 多选框,单选框未序列化之前的值 |
员工管理运营机
接口URL:staff/GetStaffWechat
请求方式:POST
Headers:
access_token:token
Content-type: text/json
###### 其他参数参考Headers说明
请求参数
参数名 | 数据类型 | 是否必须 | 说明 |
---|---|---|---|
ad_staff_code | string | 否 | 员工号(不传获取所有员工管理运营机) |
请求示例
"ad_staff_code":"b03"
}
接收返回结果
{
"requestId": null,
"errmsg": 20000,
"succeed": true,
"msgTime": "2021-12-27T15:18:13.1647541+08:00",
"values": [{
"ad_staff_code": "b03",
"ad_wechat_id": 3547,
"ad_wechat_nober": "zznn72537",
"ad_wechat_nick": "P03",
"ad_wechat_nickname": "秀逗吖Q.",
"ad_wechat_qrcode": "http://img-1259062805.cos.ap-chengdu.myqcloud.com/640462692/other/wxid_2yfwlz5fu21922mmqrcode1632752533600.png",
"ad_original_nober": "wxid_2yfwlz5fu21922"
}],
"errdesc": null
}
返回结果说明
参数名 | 数据类型 | 说明 |
---|---|---|
ad_staff_code | string | 员工号 |
ad_wechat_id | int | 运营号编号 |
ad_wechat_nober | string | 微信号 |
ad_wechat_nick | string | 机号, |
ad_wechat_qrcode | string | 二维码 |
ad_wechat_nickname | string | 微信昵称 |
ad_original_nober | string | 运营号原始微信号 |