添加微信好友
简要描述:
添加微信好友
请求URL:
请求方式:
- POST
请求头Headers:
- Authorization: Bearer xxx(PS:xxx是代表login接口返回,Bearer后面有个空格,除了login接口,后续所有接口都携带此参数)
- Content-Type:application/json
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| sessionId | 是 | string | |
| key | 是 | string | 联系人id |
| searchType | 是 | string | |
| openId | 是 | string | |
| hello | 否 | string |
返回数据:
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | number | 200成功,其他失败 |
| msg | string | 反馈信息 |
请求参数示例
{
"sessionId":"***",
"key":"176**149",
"searchType":"0",
"openId":"1970**451895",
"hello":"test"
}
成功返回示例
{
"msg": "操作成功",
"code": 200
}
错误返回示例
{
"msg": "session timeout or authentication token not found or invalid credit info",
"code": 500
}