Showing
1 changed file
with
51 additions
and
0 deletions
帮助中心/微信客服号接口-erp.md
0 → 100644
1 | +## 1、用户是否需要引导添加微信客服接口## | ||
2 | + | ||
3 | +用户是否需要引导添加微信客服(/erp/wechat/getIsNeedAddWechatCS) | ||
4 | +#### 请求参数 | ||
5 | +| 参数名称 | 参数类型 |长度| 可否为空 | 示例 | 默认值 | 备注 | | ||
6 | +|:-------| -----:|-----:|-----:|-----:|-----:|----:| | ||
7 | +|uid|int|11|否|500031572|0|用户uid| | ||
8 | + | ||
9 | + | ||
10 | +| 接口说明|| | ||
11 | +|:-------| -----:| | ||
12 | +|接口说明|用户是否需要引导添加微信客服| | ||
13 | +|http请求方式|POST/GET| | ||
14 | +#### 返回错误 | ||
15 | +|错误code|错误提示| | ||
16 | +|:-------| -----:| | ||
17 | +|500|参数缺失| | ||
18 | +注意,通用的头部没有列出。 | ||
19 | +请求示例 | ||
20 | +/erp-gateway/erp/wechat/getIsNeedAddWechatCS?uid=500031572 | ||
21 | + | ||
22 | +### 响应 | ||
23 | +code为200即为成功,否则是失败。 | ||
24 | +响应参数,data部分,needAddWechatService为"N" 则不需要引导, needAddWechatService为"Y",需要引导并返回微信号 | ||
25 | +响应成功JSON()格式如下所示: | ||
26 | +```json | ||
27 | + | ||
28 | + | ||
29 | +{ | ||
30 | + "alg": "SALT_MD5", | ||
31 | + "code": 200, | ||
32 | + "data": { | ||
33 | + "needAddWechatService": "N" | ||
34 | + }, | ||
35 | + "md5": "1f208688c0adbfc7d2306fbadb2ae809", | ||
36 | + "message": "操作成功" | ||
37 | +} | ||
38 | + | ||
39 | +{ | ||
40 | + "alg": "SALT_MD5", | ||
41 | + "code": 200, | ||
42 | + "data": { | ||
43 | + "needAddWechatService": "Y", | ||
44 | + "wechtCode": "weixin123", | ||
45 | + "context":"潮流顾问一对一服务,体验升级" | ||
46 | + }, | ||
47 | + "md5": "1f208688c0adbfc7d2306fbadb2ae809", | ||
48 | + "message": "操作成功" | ||
49 | +} | ||
50 | + | ||
51 | +``` |
-
Please register or login to post a comment