差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
im:server:basics:messages [2020/04/13 04:41] allenwang |
im:server:basics:messages [2020/07/28 07:06] huanxinfudh [发送透传消息] |
||
---|---|---|---|
行 118: | 行 118: | ||
|msg|消息内容| | |msg|消息内容| | ||
|type|消息类型;txt:文本消息,img:图片消息,loc:位置消息,audio:语音消息,video:视频消息,file:文件消息| | |type|消息类型;txt:文本消息,img:图片消息,loc:位置消息,audio:语音消息,video:视频消息,file:文件消息| | ||
- | |url|成功上传文件返回的UUID| | + | |url|域名/orgname/appname/chatfiles/成功上传文件返回的UUID。参考请求示例| |
|filename|图片名称| | |filename|图片名称| | ||
|secret|成功上传文件后返回的secret| | |secret|成功上传文件后返回的secret| | ||
行 485: | 行 485: | ||
<code php> | <code php> | ||
- | curl -X POST -H "Authorization:Bearer YWMtxc6K0L1aEeKf9LWFzT9xEAAAAT7MNR_9OcNq-GwPsKwj_TruuxZfFSC2eIQ" -i "https://a1.easemob.com/easemob-demo/testapp/messages" -d '{"target_type":"users","target":["user2","user3"],"msg":{"type":"cmd","action":"action1"},"from":"user1"}}' | + | curl -X POST -H "Authorization:Bearer YWMtxc6K0L1aEeKf9LWFzT9xEAAAAT7MNR_9OcNq-GwPsKwj_TruuxZfFSC2eIQ" -i "https://a1.easemob.com/easemob-demo/testapp/messages" -d '{"target_type":"users","target":["user2","user3"],"msg":{"type":"cmd","action":"action1"},"from":"user1"}' |
</code> | </code> | ||