# 發朋友圈模塊
## **Web端交互**
> *****

## **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群模塊