Commit 84273ee048ef1ad4109480f3a2cd40c0aabea974
1 parent
696c98d9
u
Showing
1 changed file
with
50 additions
and
9 deletions
05.互动云/4.5 发送消息.md
| 1 | 1 | #### 请求参数说明: |
| 2 | -| 参数名 | 参数类型 | 必选 | 参数说明 | | |
| 3 | -| :-----------: | :------: | :------: | :------: | | |
| 4 | -| appId| String | true | 应用ID | | |
| 5 | -| sid| String | true | 用户ID | | |
| 6 | -| chatroomId| String | true | 聊天室ID,多个参数以英文,号分割;<br>可以实现向多个聊天室发送消息| | |
| 7 | -| msgType| String | true| 消息类型(仅支持文本和图片消息)<br>(文本消息: RC:TxtMsg; 图片消息:RC:ImgMsg;<br>图文消息:RC:ImgTextMsg;位置消息:RC:LBSMsg;<br>提示条(小灰条)通知消息:RC:InfoNtf;<br>语音消息:RC:VcMsg;资料通知消息:RC:ProfileNtf| | |
| 8 | -| msg| String | true| 消息内容| | |
| 9 | -| imageUrl| String | false| 图片URL,(消息类型为:RC:ImgMsg时,此参数必须传)| | |
| 10 | -| sign | String | true | 签名规则见<a href="http://help.open.cnlive.com/common.html">签名详情</a> | | |
| 2 | +<table class="table table-bordered table-striped table-condensed"> | |
| 3 | + <tr> | |
| 4 | + <th>参数</th> | |
| 5 | + <th>必选</th> | |
| 6 | + <th>类型</th> | |
| 7 | + <th>说明</th> | |
| 8 | + </tr> | |
| 9 | + <tr> | |
| 10 | + <td>appId</td> | |
| 11 | + <td>true</td> | |
| 12 | + <td>string</td> | |
| 13 | + <td>应用ID</td> | |
| 14 | + </tr> | |
| 15 | + <tr> | |
| 16 | + <td>sid</td> | |
| 17 | + <td>true</td> | |
| 18 | + <td>string</td> | |
| 19 | + <td>用户ID</td> | |
| 20 | + </tr> | |
| 21 | + <tr> | |
| 22 | + <td>chatroomId</td> | |
| 23 | + <td>true</td> | |
| 24 | + <td>string</td> | |
| 25 | + <td>聊天室ID,多个参数以英文,号分割;<br>可以实现向多个聊天室发送消息</td> | |
| 26 | + </tr> | |
| 27 | + <tr> | |
| 28 | + <td>msgType</td> | |
| 29 | + <td>false</td> | |
| 30 | + <td>string</td> | |
| 31 | + <td>消息类型(仅支持文本和图片消息)<br>(文本消息: RC:TxtMsg; 图片消息:RC:ImgMsg;<br>图文消息:RC:ImgTextMsg;位置消息:RC:LBSMsg;<br>提示条(小灰条)通知消息:RC:InfoNtf;<br>语音消息:RC:VcMsg;资料通知消息:RC:ProfileNtf</td> | |
| 32 | + </tr> | |
| 33 | + <tr> | |
| 34 | + <td>msg</td> | |
| 35 | + <td>true</td> | |
| 36 | + <td>string</td> | |
| 37 | + <td>消息内容</td> | |
| 38 | + </tr> | |
| 39 | + <tr> | |
| 40 | + <td>imageUrl</td> | |
| 41 | + <td>false</td> | |
| 42 | + <td>string</td> | |
| 43 | + <td>图片URL,(消息类型为:RC:ImgMsg时,此参数必须传)</td> | |
| 44 | + </tr> | |
| 45 | + <tr> | |
| 46 | + <td>sign</td> | |
| 47 | + <td>true</td> | |
| 48 | + <td>string</td> | |
| 49 | + <td>签名</td> | |
| 50 | + </tr> | |
| 51 | +</table> | |
| 11 | 52 | ----- |
| 12 | 53 | #### 返回格式说明: |
| 13 | 54 | ``` | ... | ... |