# 发朋友圈模块
## **Web端交互**
> *****
![(images/screenshot_1567145572362.png)](https://img.kancloud.cn/9b/64/9b64ee074afd6e472a1c8ddb48c43898_1095x792.png)
## **API相关文档**
> *****
接口描述 | **解密获取某个朋友视频朋友圈的视频缩略图**
---|---
URL | /wechat_api/sns/getSnsMdieaThum
请求方式 | get
请求参数 | mediaUrl=http%3a%2f%2fshzjwxsns.video.qq.com%2f102%2f20202%2fsnsvideodownload%3fencfilekey%3djEXicia3muM3GjTlk1Z3kYCU9cOibLhqREF6e1LKWZiafzGIG5Cy7Gk6QtcLd7J6ianwNiaRP7ECbYCINmnibooia0PlqbiaoJa3gRagCFjSMOFXqhw5rOia7iar3Ck3DicFw9jdqiakxJr2RzUwR08VNE1fcYtgictOF1KMibIykwF%26token%3dAxricY7RBHdWLnyNFyR4AO1icIF3icghcRgrpzd0ic6GSh93diaRTD3vdia2lp0C2HoRTrFFHMQAxeblI%26idx%3d1%26bizid%3d1023%26dotrans%3d2%26ef%3d15_0%26hy%3dSH&key=3842186764&enc=1
返回值 | 缩略图.jpg
| Sort | Param | Type | Description |
| --- | --- | --- | --- |
| 请求参数 | mediaUrl | String | 从xml中获取,务必经过URLEncode之后再作为参数传入
| 请求参数 | key | Long | 3842186764,从xml中获得
| 请求参数 | enc | string | 1 ,从xml中获得
> 备注:如上的参数来源为,调用获取朋友圈的时候得到webSocket推送时,内容包括每条朋友圈的xml,如果是视频朋友圈的话,如上三个参数会出现在该朋友圈的xml中,举例如下
```
<TimelineObject>
<id>
<![CDATA[13115048534225989803]]>
</id>
<username>
<![CDATA[wxid_8twmv8pkgvox22]]>
</username>
<createTime>
<![CDATA[1563435618]]>
</createTime>
<contentDescShowType>0</contentDescShowType>
<contentDescScene>0</contentDescScene>
<private>
<![CDATA[0]]>
</private>
<contentDesc></contentDesc>
<contentattr>
<![CDATA[0]]>
</contentattr>
<sourceUserName></sourceUserName>
<sourceNickName></sourceNickName>
<statisticsData></statisticsData>
<weappInfo>
<appUserName></appUserName>
<pagePath></pagePath>
</weappInfo>
<canvasInfoXml></canvasInfoXml>
<ContentObject>
<contentStyle>
<![CDATA[15]]>
</contentStyle>
<contentSubStyle>
<![CDATA[0]]>
</contentSubStyle>
<title>微信小视频</title>
<description></description>
<contentUrl>https://support.weixin.qq.com/cgi-bin/mmsupport-bin/readtemplate?t=page/common_page__upgrade&v=1</contentUrl>
<mediaList>
<media>
<enc key="3842186764">1</enc>
<id>
<![CDATA[13115048534857887904]]>
</id>
<type>
<![CDATA[6]]>
</type>
<title></title>
<description></description>
<private>
<![CDATA[0]]>
</private>
<url videomd5="3d053a66abf61e01a7e66b125ee098d7" type="1" md5="8dffe4712906d331e815b2a448f0e388">
<![CDATA[http://shzjwxsns.video.qq.com/102/20202/snsvideodownload?encfilekey=jEXicia3muM3GjTlk1Z3kYCU9cOibLhqREF6e1LKWZiafzGIG5Cy7Gk6QtcLd7J6ianwNiaRP7ECbYCINmnibooia0PlqbiaoJa3gRagCFjSMOFXqhw5rOia7iar3Ck3DicFw9jdqiakxJr2RzUwR08VNE1fcYtgictOF1KMibIykwF&token=AxricY7RBHdWLnyNFyR4AO1icIF3icghcRgrpzd0ic6GSh93diaRTD3vdia2lp0C2HoRTrFFHMQAxeblI&idx=1&bizid=1023&dotrans=2&ef=15_0&hy=SH]]>
</url>
<thumb type="1">
<![CDATA[http://vweixinthumb.tc.qq.com/150/20250/snsvideodownload?encfilekey=jEXicia3muM3GjTlk1Z3kYCdLKKdicknaTQWEjeI0d0zbvPGjq1333GucjoJDnZTVVibw1NsYOLKFicd1W13liaOGXAglrm0TPPZ8k3Oiaic9IibaV2zwrhLiaTesaibFWBUib4GiaZPKU7EzGJbWUiamNyAxkrv8VZZsO2orzgL5K&token=AxricY7RBHdWLnyNFyR4AO1icIF3icghcRgrpzd0ic6GShicLJJNZZnfqyZ6Hibd4QnfgRUdtjSJMCGoY&idx=1&bizid=1023&hy=SH]]>
</thumb>
<size totalSize="15325.0" width="200.0" height="400.0"></size>
</media>
</mediaList>
</ContentObject>
<actionInfo>
<appMsg>
<mediaTagName></mediaTagName>
<messageExt></messageExt>
<messageAction></messageAction>
</appMsg>
</actionInfo>
<appInfo>
<id></id>
</appInfo>
<location poiClassifyId="" poiName="" poiAddress="" poiClassifyType="0" city=""></location>
<publicUserName></publicUserName>
<streamvideo>
<streamvideourl></streamvideourl>
<streamvideothumburl></streamvideothumburl>
<streamvideoweburl></streamvideoweburl>
</streamvideo>
</TimelineObject>
```
> *****
接口描述 | **解密获取某个朋友视频朋友圈的视频**
---|---
URL | /wechat_api/sns/getSnsMdiea
请求方式 | get
请求参数 | mediaUrl=http%3a%2f%2fshzjwxsns.video.qq.com%2f102%2f20202%2fsnsvideodownload%3fencfilekey%3djEXicia3muM3GjTlk1Z3kYCU9cOibLhqREF6e1LKWZiafzGIG5Cy7Gk6QtcLd7J6ianwNiaRP7ECbYCINmnibooia0PlqbiaoJa3gRagCFjSMOFXqhw5rOia7iar3Ck3DicFw9jdqiakxJr2RzUwR08VNE1fcYtgictOF1KMibIykwF%26token%3dAxricY7RBHdWLnyNFyR4AO1icIF3icghcRgrpzd0ic6GSh93diaRTD3vdia2lp0C2HoRTrFFHMQAxeblI%26idx%3d1%26bizid%3d1023%26dotrans%3d2%26ef%3d15_0%26hy%3dSH&key=3842186764&enc=1&md5=8dffe4712906d331e815b2a448f0e388
返回值 | 视频内容
- 参数说明
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- | --- |
| 请求参数 | mediaUrl | String | Y | 从xml中获取,务必经过URLEncode之后再作为参数传入
| 请求参数 | key | Long | Y |3842186764,从xml中获得
| 请求参数 | enc | String | Y | 从xml中获得
| 请求参数 | md5| String | Y | 8dffe4712906d331e815b2a448f0e388 ,从xml中获得
> *****
接口描述 | **发布朋友圈**
---|---
URL | /wechat_api/sns/publish
请求方式 | get
请求参数 | {seconds:"null", cmdId:"string", pushSelfTime:"0", pushRecomTime:"null", delayType:"null", comment:"string", uin:"string", userName:"string", type:"string", content:"string", recId:"string", pushType:"null}
返回值 |{msg: "发布成功", code: 200}
- 参数说明
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- | --- |
| 请求参数 | uin| String | Y | uin
| 请求参数 | username| Long | Y |微信账号
| 请求参数 | content| String | Y | 朋友圈内容
| 请求参数 | type| String | Y | 朋友圈类型
| 请求参数 | cmdID| String | Y | 指令ID
| 请求参数 | comment| String | Y | 评论
| 请求参数 | delayType| String | Y | 延时类型
| 请求参数 | seconds| String | Y | 延时时间
| 请求参数 | pushType| String | Y | 发送类型
| 请求参数 | pushSelfTime| String | Y | 自定义发送时间
| 请求参数 | pushRecomTime| String | Y | 推荐发送时间
| 请求参数 | recId| String | Y | 记录ID
> *****
接口描述 | **获取所有微信管理员的信息**
---|---
URL | /wechat\_api/message/getAllWXInfo
请求方式 | get
请求参数 |
返回值 |{"code":200,"msg":"操作成功!","data":[{"adminUserId":33726,"adminUserName":"13476673692","adminRealName":"陶成","wechatUserId":13806,"uin":"663329897","headImgUrl":"http://wx.qlogo.cn/mmhead/ver_1/QU8ZhjEqyswUwgSZzQnOwxcre1UMMjCHjf1HmFFkQib9G6SXG7DZDKiaHdbzg0ZeaMzib5rpJMNYyXpn2B7BNZ49ICEWDToiccibgZ1qKnVa1jac/0","wechatUserName":"wxid_oo8w553uj5g612","wechatNickName":"售前-陶成","adminUserStatusCd":99,"secName":"工作号","departName":null,"verify":"我是售前-巫建平","status":1},{"adminUserId":33847,"adminUserName":"sss","adminRealName":"sss00","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":"后勤部门","verify":"","status":null},{"adminUserId":34854,"adminUserName":"zizhanghao1","adminRealName":"111","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":null,"verify":"","status":null},{"adminUserId":34857,"adminUserName":"zizhanghao4","adminRealName":"444","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":"销售部门","verify":"","status":null},{"adminUserId":34858,"adminUserName":"zizhanghao5","adminRealName":"555","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":null,"verify":"","status":null},{"adminUserId":34859,"adminUserName":"zizhanghao6","adminRealName":"666","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":null,"verify":"","status":null},{"adminUserId":34860,"adminUserName":"zizhanghao7","adminRealName":"777","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":"研发部门","verify":"","status":null},{"adminUserId":34861,"adminUserName":"zizhanghao8","adminRealName":"888","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":"财务部门","verify":"","status":null},{"adminUserId":35088,"adminUserName":"zizhanghao0","adminRealName":"xiaoxiao","wechatUserId":null,"uin":null,"headImgUrl":null,"wechatUserName":null,"wechatNickName":null,"adminUserStatusCd":101,"secName":null,"departName":"后勤部门","verify":"","status":null}]}
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- | --- |
> *****
接口描述 | **上传图片至CDN**
---|---
URL | /wechat\_api/sns/uploadToCdn
请求方式 | get
请求参数 | imgUrl:https://qiniu3.lianluoyi.com/sns/E126A/20190830F6y/7bbf33a09b00f61b3ee90372ad628ef.png,uin: 663329897, cmdId: sns20190830F6y
返回值 |{"code":200,"msg":"提交成功!","data":null}
- 参数说明
| Sort | Param | Type | required | Description |
| --- | --- | --- | --- | --- |
| 请求参数 | imgUrl| String | Y | 资源七牛云地址
| 请求参数 | uin| string| Y |微信号ID
| 请求参数 | cmdId| String | Y | 指令ID
- 首页
- 系统登录注册模块
- 登录模块
- 注册模块
- 忘记密码模块
- 功能首页渲染模块
- 会话面板模块
- 微信号登录模块
- 会话联系人模块
- 通讯录模块
- 聊天窗口模块
- 快捷回复模块
- 客户录入模块
- 群管理模块
- 历史消息面板模块
- 群发助手面板模块
- 群发设置模块
- 群发管理模块
- 群发演示模块
- 朋友圈面板模块
- 发朋友圈模块
- 朋友圈互动模块
- 朋友圈历史记录模块
- 客户管理面板模块
- 客户查询模块
- 服务记录模块
- 批量标签模块
- 标签管理模块
- 昵称管理模块
- 个性称呼模块
- 批量导入客户模块
- 报表面板模块
- 微信好友报表
- 被删好友报表
- 新增好友报表
- 添加好友报表
- 服务记录报表
- 转账记录报表
- 红包统计报表
- 会话统计报表
- 电话统计报表
- 标签统计报表
- 账号管理面板模块
- 微信号管理模块
- 部门管理模块
- 子账号管理模块
- 在线日志模块
- 机器人模块
- 自动通过好友模块
- 小程序商城模块
- 微信号分配模块
- 帮助中心面板模块
- 个人中心模块
- 我的账号模块
- 系统设置模块
- 第三方能力接口对接
- 第三方登录模块
- 联系人模块
- 系统账号模块
- 服务版本接口迭代说明
- 素材库
- 好友去重
- V群模块