差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 后一修订版 两侧同时换到之后的修订记录 | ||
start:100serverintegration:50messages [2017/01/18 08:23] liulj |
start:100serverintegration:50messages [2018/09/05 09:54] 127.0.0.1 外部编辑 |
||
---|---|---|---|
行 27: | 行 27: | ||
Request Body: | Request Body: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"target_type" : "users", // users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | "target_type" : "users", // users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | ||
行 39: | 行 39: | ||
"from" : "jma2" //表示消息发送者。无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | "from" : "jma2" //表示消息发送者。无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | ||
} | } | ||
- | </sxh> | + | </code> |
行 51: | 行 51: | ||
Response 示例: | Response 示例: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"action": "post", | "action": "post", | ||
行 69: | 行 69: | ||
"applicationName": "chatdemoui" | "applicationName": "chatdemoui" | ||
} | } | ||
- | </sxh> | + | </code> |
===== 发送图片消息 ===== | ===== 发送图片消息 ===== | ||
行 90: | 行 90: | ||
Request Body: | Request Body: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"target_type" : "users", //users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | "target_type" : "users", //users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | ||
行 108: | 行 108: | ||
"from" : "jma2" //表示消息发送者,无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | "from" : "jma2" //表示消息发送者,无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | ||
} | } | ||
- | </sxh> | + | </code> |
行 120: | 行 120: | ||
Response 示例: | Response 示例: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"action" : "post", | "action" : "post", | ||
行 134: | 行 134: | ||
"applicationName" : "chatdemoui" | "applicationName" : "chatdemoui" | ||
} | } | ||
- | </sxh> | + | </code> |
行 156: | 行 156: | ||
Request Body: | Request Body: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"target_type" : "users", //users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | "target_type" : "users", //users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | ||
行 171: | 行 171: | ||
"from" : "testa" //表示消息发送者,无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | "from" : "testa" //表示消息发送者,无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | ||
} | } | ||
- | </sxh> | + | </code> |
行 183: | 行 183: | ||
Response 示例: | Response 示例: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"action" : "post", | "action" : "post", | ||
行 199: | 行 199: | ||
"applicationName" : "chatdemoui" | "applicationName" : "chatdemoui" | ||
} | } | ||
- | </sxh> | + | </code> |
行 221: | 行 221: | ||
Request Body: | Request Body: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"target_type": "users", //users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | "target_type": "users", //users 给用户发消息。chatgroups: 给群发消息,chatrooms: 给聊天室发消息 | ||
行 239: | 行 239: | ||
} | } | ||
} | } | ||
- | </sxh> | + | </code> |
行 251: | 行 251: | ||
Response 示例: | Response 示例: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"action" : "post", | "action" : "post", | ||
行 267: | 行 267: | ||
"applicationName" : "chatdemoui" | "applicationName" : "chatdemoui" | ||
} | } | ||
- | </sxh> | + | </code> |
行 288: | 行 288: | ||
Request Body: | Request Body: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"target_type":"users", // users 给用户发消息。chatgroups 给群发消息,chatrooms 给聊天室发消息 | "target_type":"users", // users 给用户发消息。chatgroups 给群发消息,chatrooms 给聊天室发消息 | ||
行 300: | 行 300: | ||
"from":"testa" //表示消息发送者。无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | "from":"testa" //表示消息发送者。无此字段Server会默认设置为"from":"admin",有from字段但值为空串("")时请求失败 | ||
} | } | ||
- | </sxh> | + | </code> |
行 312: | 行 312: | ||
Response 示例: | Response 示例: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"action" : "post", | "action" : "post", | ||
行 327: | 行 327: | ||
"applicationName" : "chatdemoui" | "applicationName" : "chatdemoui" | ||
} | } | ||
- | </sxh> | + | </code> |
===== 发送扩展消息 ===== | ===== 发送扩展消息 ===== | ||
行 347: | 行 347: | ||
Request Body: | Request Body: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"target_type":"users", // users 给用户发消息。chatgroups 给群发消息,chatrooms 给聊天室发消息 | "target_type":"users", // users 给用户发消息。chatgroups 给群发消息,chatrooms 给聊天室发消息 | ||
行 362: | 行 362: | ||
} | } | ||
} | } | ||
- | </sxh> | + | </code> |
行 374: | 行 374: | ||
Response 示例: | Response 示例: | ||
- | <sxh javascript> | + | <code json> |
{ | { | ||
"action" : "post", | "action" : "post", | ||
行 389: | 行 389: | ||
"applicationName" : "chatdemoui" | "applicationName" : "chatdemoui" | ||
} | } | ||
- | </sxh> | + | </code> |
---- | ---- |