webim无法接收到服务端发送的消息
webim可以接收到环信管理后台手动发送的消息,但是无法收到服务端通过rest api发送的消息(rest api返回的状态是成功的)
request body格式如下:
{target_type: "users",
target:
[
"liuzibin",
"huangweizhang"
],
msg:
{
type: "txt",
msg: "6616"
},
from: "admin",
ext:
{
a: 1,
b: 2
}}
rest api返回数据如下:
action: "post",
application: "60d91d30-0426-11e8-b658-5fdfb2436001",
path: "/messages",
uri: "https://a1.easemob.com/1171180127178771/kieron/messages",
data:
{
liuzibin: "success",
huangweizhang: "success"
},
timestamp: 1519718032520,
duration: 0,
organization: "1171180127178771",
applicationName: "kieron"
request body格式如下:
{target_type: "users",
target:
[
"liuzibin",
"huangweizhang"
],
msg:
{
type: "txt",
msg: "6616"
},
from: "admin",
ext:
{
a: 1,
b: 2
}}
rest api返回数据如下:
action: "post",
application: "60d91d30-0426-11e8-b658-5fdfb2436001",
path: "/messages",
uri: "https://a1.easemob.com/1171180127178771/kieron/messages",
data:
{
liuzibin: "success",
huangweizhang: "success"
},
timestamp: 1519718032520,
duration: 0,
organization: "1171180127178771",
applicationName: "kieron"
没有找到相关结果
已邀请:
0 个回复