文档
测试

req- [异步] -朋友圈发送

POST
{{ip}}/api/Moments/SendMomentsMessage

请求头

参数名
类型
描述
Content-Type
String
application/json

请求参数

参数名
类型
描述
vcMerchantNo
String
商家编号
vcRobotSerialNo
String
机器人编号
nMomentType
Integer
发送类型:(2001:纯文字,2002:图文,2004:视频,2005:链接)
vcContentDesc
String
文字内容
vcTitle
String
标题(nMomentType=2005时使用)
vcContentUrl
String
链接地址
MediaList
List
图片地址
vcMediaUrl
String
视频地址
nVideoDuration
String
视频封面地址
vcCoverImgUrl
String
视频长度
vcContactSerialNos
String
指定人的wxid
nPrivateType
Integer
可见类型(0:无限制,1:指定不可见,2指定可见,3:仅自己可见)

请求示例

发送文本: ``` { "vcMerchantNo": "{{appId}}", "vcRobotSerialNo": "{{uin}}", "nMomentType": 2001, "vcContentDesc": "", "vcTitle": "aaa", "vcContentUrl": "", "MediaList": [], "vcContactSerialNos": "", "nPrivateType": 0 } ``` 发送图片: ``` { "vcMerchantNo": "{{appId}}", "vcRobotSerialNo": "{{uin}}", "nMomentType": 2002, "vcContentDesc": "ccc", "vcTitle": "", "vcContentUrl": "", "MediaList": [{ "vcMediaUrl":"https://lianluoyi.oss-cn-shenzhen.aliyuncs.com/upload/material/17336a49ea0469d3ae2e7354b8bbe1aa.jpg", "nVideoDuration":"", "vcCoverImgUrl":"" } ], "vcContactSerialNos": "", "nPrivateType": 0 } ``` 发送视频: ``` { "vcMerchantNo": "{{appId}}", "vcRobotSerialNo": "{{uin}}", "nMomentType": 2004, "vcContentDesc": "ccc", "vcTitle": "", "vcContentUrl": "", "MediaList": [{ "vcMediaUrl":"http://siyouyun-1253559996.cos.ap-guangzhou.myqcloud.com/common/BUG44/20200507/1588819876378NYN/normal_video.mp4?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDBi7d3I4UK7iDXkAhQyQsDMNGxY2KmlCY%26q-sign-time%3D1588819868%3B1675133468%26q-key-time%3D1588819868%3B1675133468%26q-header-list%3D%26q-url-param-list%3D%26q-signature%3De314c1509b258501c1d4536d580d38fa5268c92f", "nVideoDuration":"", "vcCoverImgUrl":"https://lianluoyi.oss-cn-shenzhen.aliyuncs.com/upload/material/17336a49ea0469d3ae2e7354b8bbe1aa.jpg" } ], "Tags": [{ "nTagId": 0, "vcTagName": "" }], "vcContactSerialNos": "", "nPrivateType": 0 } ``` 发送链接: ``` { "vcMerchantNo": "{{appId}}", "vcRobotSerialNo": "{{uin}}", "nMomentType": 2005, "vcContentDesc": "ccc", "vcTitle": "标题", "vcContentUrl": "https://www.json.cn", "MediaList": [{ "vcMediaUrl":"https://lianluoyi.oss-cn-shenzhen.aliyuncs.com/upload/material/17336a49ea0469d3ae2e7354b8bbe1aa.jpg", "nVideoDuration":"", "vcCoverImgUrl":"" } ], "vcContactSerialNos": "", "nPrivateType": 0 } ```

响应参数

参数名
类型
描述
vcRobotSerialNo
String
机器人编号
vcSerialNo
String
操作编号
Data
Object
返回内容
nTimelineId
String
朋友圈ID
nResult
Integer
状态码
vcResult
String
消息内容
vcMerchantNo
String
商家编号
nType
Integer
推送类型
vcRobotWxId
String
机器人wxid

异步响应示例

``` { "vcRobotSerialNo":496768729, "vcSerialNo":496768729, "Data":{ "nTimelineId":"-4855465132843782010" }, "nResult":1, "vcResult":"SUCCESS", "vcMerchantNo":"174a632f2a62d655350d2034c199e8d5", "nType":6002, "vcRobotWxId":"wxid_n1zz6y2ksgod22" } ```