我通过Rest发送信息给移动端,移动端没有收到我用rest api发的消息,但返回的数据是成功的
{
"action" : "post",
"application" : "xx",
"uri" : "https://a1.easemob.com/xxx/xxx",
"entities" : [ ],
"data" : {
"郭杨" : "success"
},
"timestamp" : 1441872928192,
"duration" : 0,
"organization" : "xxx",
"applicationName" : "xxx"
}
"action" : "post",
"application" : "xx",
"uri" : "https://a1.easemob.com/xxx/xxx",
"entities" : [ ],
"data" : {
"郭杨" : "success"
},
"timestamp" : 1441872928192,
"duration" : 0,
"organization" : "xxx",
"applicationName" : "xxx"
}
没有找到相关结果
已邀请:
3 个回复
lizg - ……
soluble。
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append("{");
stringBuilder.Append("\"target_type\" :\"users\",\"target\":[\"" + userid + "\"],");
stringBuilder.Append("\"msg\":{\"type\":\"txt\",\"msg\":\"" + word + "\"},\"from\":\"" + helperid + "\"");
stringBuilder.Append("}");
//
try
{
string responeResult = ReqUrl(postUrl, "POST", stringBuilder.ToString(), QueryToken());
}
环信技术支持中心