圈组相关回调
更新时间: 2024/07/17 17:57:35
通过圈组相关事件回调功能,可以实现您的应用服务器干预圈组相关事件的处理结果(具体干预流程请参见 第三方回调概述),满足您的应用对于第三方内容审核、安全策略等方面的业务需求。
本文主要为您提供如下信息:
- 通过 HTTP 协议 POST 方法实现相关回调的示例
- 通过 cURL 命令行实现相关回调的示例
- 消息体中的 JSON 字段说明
圈组相关的基本概念和功能介绍,请参见什么是圈组。
圈组登录回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"authType":0,
"customClientType":0,
"customTag":"custom-ygy",
"eventType":40,
"fromAccount":"yx",
"fromClientIp":"115.236.119.135",
"fromClientPort":"30467",
"fromClientType":"IOS",
"fromDeviceId":"test866e7703-f7a4-4bdb-8359-05c878de7c6f",
"timestamp":"1646883135222",
"token":"xxxxx"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**052194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d ' {
"authType":0,
"customClientType":0,
"customTag":"custom-ygy",
"eventType":40,
"fromAccount":"yx",
"fromClientIp":"115.236.119.135",
"fromClientPort":"30467",
"fromClientType":"IOS",
"fromDeviceId":"test866e7703-f7a4-4bdb-8359-05c878de7c6f",
"timestamp":"1646883135222",
"token":"xxxxx"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 抄送类型,固定为 40 |
fromAccount | String | 是 | 账号 |
fromDeviceId | String | 是 | 设备号 |
fromClientType | String | 是 | 客户端类型 |
fromClientIp | String | 是 | 客户端 IP 地址 |
fromClientPort | String | 是 | 客户端端口 |
token | String | 是 | 登陆的 Token |
authType | int | 是 | 鉴权方式:0 表示 loginToken 校验,1 表示基于 appSecret 计算的 token 鉴权方式,2表示基于第三方回调的 token 鉴权方式 |
loginExt | String | 否 | 登录自定义字段 |
customTag | String | 否 | 客户端自定义tag |
customClientType | Integer | 否 | 自定义客户端类型 |
圈组发消息回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**2194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"body":"文本消息-2022-03-10T11:37:33.205",
"channelId":"1410786",
"eventType":41,
"ext":"ext-ygy2022-03-10T11:37:33.205",
"fromAccount":"yx",
"fromClientIp":"115.236.119.135",
"fromClientPort":"36511",
"fromClientType":"IOS",
"fromDeviceId":"testf5cfbe39-1985-4a36-ad89-dbb2902dc212",
"fromNick":"yx",
"mentionedAccidList": [],
"messageIdClient":"c5a03f68-ec91-4b3c-a532-7d33754b6af8",
"messageIdServer":"1558437",
"messageType":"TEXT",
"needPushNick":1,
"pushContent":"自定义推送文案",
"pushEnable":1,
"pushPayload":"{\"pushPayload\":\"pushPayload-123456\"}",
"serverId":"1508951",
"timestamp":"1646883453312"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15**b052194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"body":"文本消息-2022-03-10T11:37:33.205",
"channelId":"1410786",
"eventType":41,
"ext":"ext-ygy2022-03-10T11:37:33.205",
"fromAccount":"yx",
"fromClientIp":"115.236.119.135",
"fromClientPort":"36511",
"fromClientType":"IOS",
"fromDeviceId":"testf5cfbe39-1985-4a36-ad89-dbb2902dc212",
"fromNick":"yx",
"mentionedAccidList": [],
"messageIdClient":"c5a03f68-ec91-4b3c-a532-7d33754b6af8",
"messageIdServer":"1558437",
"messageType":"TEXT",
"needPushNick":1,
"pushContent":"自定义推送文案",
"pushEnable":1,
"pushPayload":"{\"pushPayload\":\"pushPayload-123456\"}",
"serverId":"1508951",
"timestamp":"1646883453312"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:41 |
serverId | String | 是 | 消息所属的serverId |
channelId | String | 是 | 消息所属的channelId |
fromAccount | String | 是 | 消息发送者的accid |
messageType | String | 是 | 消息类型 |
messageIdClient | String | 是 | 消息发送者这的客户端类型 |
messageIdServer | String | 是 | 服务端生成的消息id,全局唯一 |
fromClientType | String | 否 | 消息发送者这的客户端类型 |
fromDeviceId | String | 否 | 发送设备 IP 地址 |
fromNick | String | 是 | 发送方昵称 |
fromClientIp | String | 否 | 客户端 IP 地址 |
fromClientPort | String | 否 | 客户端端口 |
body | String | 是 | 消息内容 |
attach | String | 否 | 消息附件 |
ext | String | 否 | 消息自定义扩展字段 |
pushContent | String | 否 | 自定义推送文案 |
pushPayload | String | 否 | 第三方自定义的推送属性,限制json |
pushEnable | Integer | 否 | 是否需要推送, 0:不需要, 1:需要 |
needPushNick | Integer | 否 | 是否需要推送昵称, 0:不需要, 1:需要 |
mentionedType | Integer | 是 | 是否艾特所有人,0:不是,1:是 |
mentionedAccidList | List | 否 | 被@的人的 accid 列表 |
创建圈组服务器回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"applymode":0,
"consid":"78c02bb1-382b-49a7-9303-0162d4175d59",
"custom":"自定义扩展-06",
"eventType":42,
"icon":"https://nim.nosdn.127.net/MTAxMTAxMA==/bmltYV8",
"invitemode":1,
"name":"autoest-server-2b",
"owner":"yx",
"timestamp":"1646745450242",
"username":"yx"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**2194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"applymode":0,
"consid":"78c02bb1-382b-49a7-9303-0162d4175d59",
"custom":"自定义扩展-06",
"eventType":42,
"icon":"https://nim.nosdn.127.net/MTAxMTAxMA==/bmltYV8",
"invitemode":1,
"name":"autoest-server-2b",
"owner":"yx",
"timestamp":"1646745450242",
"username":"yx"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:42 |
accid | String | 是 | 帐号 |
consid | String | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
name | String | 是 | 圈组服务器的名称 |
icon | String | 否 | 圈组服务器的图标 |
custom | String | 否 | 自定义扩展 |
invitemode | Integer | 否 | 邀请模式,0-邀请需要同意(默认),1-邀请不需要同意 |
applymode | Integer | 否 | 申请模式0-申请不需要同意(默认),1-申请需要同意 |
更新圈组服务器回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 1589838**94d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"applymode":0,
"consid":"5b438624-1edf-41e4-8dd9-498ec46d1f03",
"custom":"自定义扩展-5l",
"eventType":43,
"icon":"http://b12026.nos.netease.com/MTAxMTAxMA",
"invitemode":1,
"name":"update-server-6za",
"serverid":1508353,
"timestamp":"1646792620187",
"username":"yx"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"applymode":0,
"consid":"5b438624-1edf-41e4-8dd9-498ec46d1f03",
"custom":"自定义扩展-5l",
"eventType":43,
"icon":"http://b12026.nos.netease.com/MTAxMTAxMA",
"invitemode":1,
"name":"update-server-6za",
"serverid":1508353,
"timestamp":"1646792620187",
"username":"yx"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:43 |
accid | String | 是 | 帐号 AOS、IOS、PC、WINPHONE、WEB、REST |
consid | String | 否 | 长连接唯一标识 |
username | String | 否 | 用户名 |
serverid | Long | 是 | 圈组服务器 ID |
name | String | 是 | 圈组服务器的名称 |
icon | String | 否 | 圈组服务器的图标 |
custom | String | 否 | 自定义扩展 |
invitemode | Integer | 否 | 邀请模式,0-邀请需要同意(默认),1-邀请不需要同意 |
applymode | Integer | 否 | 申请模式,0-申请不需要同意(默认),1-申请需要同意 |
删除服务器回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"consid":"177651b7-697c-445f-9624-fb8203d31cf2",
"eventType":44,
"serverid":1492678,
"timestamp":"1646744580058",
"username":"yx"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881**52194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"consid":"177651b7-697c-445f-9624-fb8203d31cf2",
"eventType":44,
"serverid":1492678,
"timestamp":"1646744580058",
"username":"yx"
}'
消息体中的 JSON 字段说明
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:44 |
accid | String | 是 | 帐号 ID |
consid | String | 否 | 长连接唯一标识 |
username | String | 否 | 用户名 |
serverid | long | 否 | 圈组服务器 ID |
邀请服务器成员回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"qaz",
"consid":"23c91473-4617-453d-8a4c-c63ce5d87e13",
"eventType":45,
"inviteAccids":[ "wm412", "wm411", "wm499", "wm410", "wm498"],
"msg":"邀请加入服务器",
"serverid":165430,
"timestamp":"1648112842776",
"username":"qaz"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"qaz",
"consid":"23c91473-4617-453d-8a4c-c63ce5d87e13",
"eventType":45,
"inviteAccids":[ "wm412", "wm411", "wm499", "wm410", "wm498"],
"msg":"邀请加入服务器",
"serverid":165430,
"timestamp":"1648112842776",
"username":"qaz"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:45 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | long | 是 | 圈组服务器 ID |
inviteAccids | List | 是 | 邀请的成员的帐号列表 |
msg | String | 否 | 消息体 |
接受服务器成员邀请回调
HTTP示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wmtest210",
"consid":"0f20a0e3-9d03-470d-9418-0218d5c17f88",
"eventType":46,
"inviteAccid":"wm1",
"serverid":1525515,
"timestamp":"1646965675550",
"username":"wmtest210"
}
cURL示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**4d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"wmtest210",
"consid":"0f20a0e3-9d03-470d-9418-0218d5c17f88",
"eventType":46,
"inviteAccid":"wm1",
"serverid":1525515,
"timestamp":"1646965675550",
"username":"wmtest210"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:46 |
accid | String | 是 | 帐号 |
consid | String | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | Long | 是 | 圈组服务器 ID |
inviteAccid | String | 是 | 邀请的成员帐号 |
拒绝服务器成员邀请回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**2194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wmtest210",
"consid":"e6e8145a-551b-45d9-b84e-3b47e1f9d1ac",
"eventType":47,
"inviteAccid":"wm1",
"msg":"wmtest210拒绝邀请",
"serverid":1525518,
"timestamp":"1646966143610",
"username":"wmtest210"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898**2194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"wmtest210",
"consid":"e6e8145a-551b-45d9-b84e-3b47e1f9d1ac",
"eventType":47,
"inviteAccid":"wm1",
"msg":"wmtest210拒绝邀请",
"serverid":1525518,
"timestamp":"1646966143610",
"username":"wmtest210"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:47 |
accid | String | 是 | 帐号 |
consid | String | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | Long | 是 | 圈组服务器 ID |
inviteAccid | String | 是 | 邀请的成员帐号 |
msg | String | 否 | 消息体 |
申请加入服务器回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**94d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wmtest210",
"consid":"76df8a02-9ccc-4ede-8455-fcf0e708ea22",
"eventType":48,
"msg":"申请加入",
"serverid":1525521,
"timestamp":"1646966435240",
"username":"wmtest210"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**4d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"wmtest210",
"consid":"76df8a02-9ccc-4ede-8455-fcf0e708ea22",
"eventType":48,
"msg":"申请加入",
"serverid":1525521,
"timestamp":"1646966435240",
"username":"wmtest210"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:48 |
accid | String | 是 | 帐号 |
consid | String | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | Long | 是 | 圈组服务器 ID |
msg | String | 否 | 消息体 |
接受服务器加入申请回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 1589838**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wm1",
"applyAccid":"wmtest210",
"consid":"8b53340e-2942-4e52-bb91-a48952daf0cc",
"eventType":49,
"serverid":1525524,
"timestamp":"1646966738910",
"username":"wm1"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**52194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d ' {
"accid":"wm1",
"applyAccid":"wmtest210",
"consid":"8b53340e-2942-4e52-bb91-a48952daf0cc",
"eventType":49,
"serverid":1525524,
"timestamp":"1646966738910",
"username":"wm1"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:49 |
accid | String | 是 | 操作者账号 |
consid | String | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | Long | 是 | 圈组服务器 ID |
applyAccid | String | 是 | 申请者帐号 |
拒绝服务器加入申请回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**4d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wm1",
"applyAccid":"wmtest210",
"consid":"8428c2ce-5b3a-4628-878d-3a77ee0fd39b",
"eventType":50,
"msg":"拒绝申请wmtest210",
"serverid":1525530,
"timestamp":"1646967322295",
"username":"wm1"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898**052194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"wm1",
"applyAccid":"wmtest210",
"consid":"8428c2ce-5b3a-4628-878d-3a77ee0fd39b",
"eventType":50,
"msg":"拒绝申请wmtest210",
"serverid":1525530,
"timestamp":"1646967322295",
"username":"wm1"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:50 |
accid | String | 是 | 操作者账号 |
consid | String | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | Long | 是 | 圈组服务器 ID |
applyAccid | String | 是 | 申请者帐号 |
msg | String | 否 | 消息体 |
主动离开服务器回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**94d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wmtest210",
"consid":"9189397c-7740-4cf2-865f-7bbeb9b3c9a6",
"eventType":51,
"serverid":1525534,
"timestamp":"1646967854187",
"username":"wmtest210"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898**4d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"wmtest210",
"consid":"9189397c-7740-4cf2-865f-7bbeb9b3c9a6",
"eventType":51,
"serverid":1525534,
"timestamp":"1646967854187",
"username":"wmtest210"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:51 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | long | 是 | 圈组服务器 ID |
踢除圈组服务器成员回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**94d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"qaz",
"consid":"d9794aa8-3b0e-4212-82d6-f2b0cb3fccdb",
"eventType":52,
"kickAccids":[ "wm210" ],
"serverid":214708,
"timestamp":"1648115911256",
"username":"qaz"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881**94d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"qaz",
"consid":"d9794aa8-3b0e-4212-82d6-f2b0cb3fccdb",
"eventType":52,
"kickAccids":[ "wm210" ],
"serverid":214708,
"timestamp":"1648115911256",
"username":"qaz"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:52 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | long | 是 | 圈组服务器 ID |
kickAccids | List | 是 | 踢出的成员帐号列表 |
修改圈组服务器成员信息回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e**d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wm1",
"avatar":"avatar",
"consid":"93075767-6674-4910-9863-f5cc2865f367",
"custom":"custom",
"eventType":53,
"inviter":"wm1",
"jointime":1646969126854,
"memberAccid":"wm1update16b42b52-736b-402f-aece-b32980f53ddd",
"nick":"nick-js",
"serverid":1525540,
"timestamp":"1646969127004",
"type":1,
"username":"wm1"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898388**94d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d ' {
"accid":"wm1",
"avatar":"avatar",
"consid":"93075767-6674-4910-9863-f5cc2865f367",
"custom":"custom",
"eventType":53,
"inviter":"wm1",
"jointime":1646969126854,
"memberAccid":"wm1update16b42b52-736b-402f-aece-b32980f53ddd",
"nick":"nick-js",
"serverid":1525540,
"timestamp":"1646969127004",
"type":1,
"username":"wm1"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:53 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | long | 是 | 圈组服务器 ID |
memberAccid | String | 是 | 成员帐号 |
nick | String | 否 | 昵称 |
avatar | String | 否 | 头像 |
custom | String | 否 | 自定义扩展 |
type | Integer | 否 | 成员类型 |
jointime | Long | 否 | 加入时间 |
inviter | String | 否 | 邀请者accid |
修改他人的圈组服务器成员信息回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e**4d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wm1",
"avatar":"avatar",
"consid":"d1e688e8-b8e0-472f-93ac-34cdaaeff464",
"custom":"custom",
"eventType":54,
"inviter":"wm1",
"jointime":1646978768574,
"memberAccid":"wmtest210updatefc3bc5ee-d625-4696-90c0-5249168fefca",
"nick":"nick-2k",
"serverid":1525706,
"timestamp":"1646978768696",
"type":1,
"username":"wm1"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**2194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d ' {
"accid":"wm1",
"avatar":"avatar",
"consid":"d1e688e8-b8e0-472f-93ac-34cdaaeff464",
"custom":"custom",
"eventType":54,
"inviter":"wm1",
"jointime":1646978768574,
"memberAccid":"wmtest210updatefc3bc5ee-d625-4696-90c0-5249168fefca",
"nick":"nick-2k",
"serverid":1525706,
"timestamp":"1646978768696",
"type":1,
"username":"wm1"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:54 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | long | 是 | 圈组服务器 ID |
memberAccid | String | 是 | 成员帐号 |
nick | String | 否 | 昵称 |
avatar | String | 否 | 头像 |
custom | String | 否 | 自定义扩展 |
type | Integer | 否 | 成员类型 |
jointime | Long | 否 | 加入时间 |
inviter | String | 否 | 邀请者accid |
创建频道回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 1589838**219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"consid":"ddb58e17-2c5f-49a8-9f7a-53dadf0a932a",
"eventType":55,
"name":"chl-1492675-70",
"serverid":1492675,
"timestamp":"1646744395052",
"topic":"test",
"type":0,
"username":"yx"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898**94d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"consid":"ddb58e17-2c5f-49a8-9f7a-53dadf0a932a",
"eventType":55,
"name":"chl-1492675-70",
"serverid":1492675,
"timestamp":"1646744395052",
"topic":"test",
"type":0,
"username":"yx"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:55 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | long | 否 | 圈组服务器 ID |
name | String | 是 | 频道名称 |
topic | String | 否 | 主题 |
custom | String | 否 | 自定义扩展 |
type | Integer | 否 | 频道类型,0-消息频道,100-自定义频道 |
viewmode | Long | 否 | 查看模式,0-公开模式(默认),1-私密模式 |
删除频道回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wm1",
"channelid":1427347,
"consid":"f9873fdc-a8da-4242-8568-9d0a26caf020",
"eventType":56,
"timestamp":"1646978615508",
"username":"wm1"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**4d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"wm1",
"channelid":1427347,
"consid":"f9873fdc-a8da-4242-8568-9d0a26caf020",
"eventType":56,
"timestamp":"1646978615508",
"username":"wm1"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:56 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
channelid | long | 是 | 频道 ID |
修改频道信息回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"wm1",
"channelid":1427354,
"consid":"5c00a86b-04e0-4193-97b5-19961c658546",
"custom":"#test-ne",
"eventType":57,
"name":"SDK修改chl-1525710-35",
"serverid":1525710,
"timestamp":"1646979599457",
"topic":"#test-4e",
"username":"wm1",
"viewmode":1
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e**94d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d ' {
"accid":"wm1",
"channelid":1427354,
"consid":"5c00a86b-04e0-4193-97b5-19961c658546",
"custom":"#test-ne",
"eventType":57,
"name":"SDK修改chl-1525710-35",
"serverid":1525710,
"timestamp":"1646979599457",
"topic":"#test-4e",
"username":"wm1",
"viewmode":1
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:57 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
username | String | 是 | 用户名 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
name | String | 否 | 频道名称 |
topic | String | 否 | 主题 |
custom | String | 否 | 自定义扩展 |
type | Integer | 否 | 频道类型,0-消息频道,100-自定义频道 |
viewmode | Long | 否 | 查看模式,0-公开模式(默认),1-私密模式 |
修改频道黑白名单身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"channelid":1427145,
"consid":"3d342a58-ca12-452c-b470-3c53c24e742e",
"eventType":58,
"fromNick":"yx",
"opetype":1,
"roleid":1377866,
"serverid":1525505,
"timestamp":"1646918132406",
"type":2,
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898388**219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"channelid":1427145,
"consid":"3d342a58-ca12-452c-b470-3c53c24e742e",
"eventType":58,
"fromNick":"yx",
"opetype":1,
"roleid":1377866,
"serverid":1525505,
"timestamp":"1646918132406",
"type":2,
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:58 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
fromNick | String | 是 | 昵称 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
type | Integer | 是 | 1表示白名单,2表示黑名单 |
opetype | Integer | 是 | 操作类型,1:新增,2:删除 |
roleid | Long | 是 | 身份组ID |
修改频道黑白名单成员回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"channelid":1427146,
"consid":"2a4fde03-5cb2-405d-835f-83b349636b22",
"eventType":59,
"fromNick":"yx",
"opetype":2,
"serverid":1525506,
"targetAccidList": [
"yx"
],
"timestamp":"1646918435074",
"type":1,
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589**92b052194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"channelid":1427146,
"consid":"2a4fde03-5cb2-405d-835f-83b349636b22",
"eventType":59,
"fromNick":"yx",
"opetype":2,
"serverid":1525506,
"targetAccidList": [
"yx"
],
"timestamp":"1646918435074",
"type":1,
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:59 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
fromNick | String | 是 | 昵称 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
type | Integer | 是 | 1表示白名单,2表示黑名单 |
opetype | Integer | 是 | 操作类型,1:新增,2:删除 |
targetAccidList | Long | 是 | 修改的成员账户列表 |
创建圈组服务器身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**4d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"consid":"ba82ebfd-087c-4bfa-9f52-abfc8a382f73",
"eventType":60,
"ext":"ext",
"icon":"icon",
"name":"yx-ygy-server-identify",
"serverid":1509347,
"timestamp":"1646904742790",
"type":2,
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589**94d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"consid":"ba82ebfd-087c-4bfa-9f52-abfc8a382f73",
"eventType":60,
"ext":"ext",
"icon":"icon",
"name":"yx-ygy-server-identify",
"serverid":1509347,
"timestamp":"1646904742790",
"type":2,
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:60 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
name | String | 否 | 身份组名称 |
icon | String | 否 | 圈组服务器的图标 |
ext | String | 否 | 身份组扩展字段 |
type | Integer | 否 | 类型,1 erveryone,2常规 |
更新圈组服务器身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx10",
"auths":"{\"2\":-1,\"3\":-1,\"4\":-1}",
"consid":"15dad237-c448-421a-b416-f0da517c9d5e",
"eventType":61,
"ext":"ext",
"icon":"icon",
"name":"update-server-identify",
"priority":3,
"roleid":1377879,
"serverid":1508367,
"timestamp":"1646965065651",
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589**219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx10",
"auths":"{\"2\":-1,\"3\":-1,\"4\":-1}",
"consid":"15dad237-c448-421a-b416-f0da517c9d5e",
"eventType":61,
"ext":"ext",
"icon":"icon",
"name":"update-server-identify",
"priority":3,
"roleid":1377879,
"serverid":1508367,
"timestamp":"1646965065651",
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:61 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
roleid | long | 是 | 身份组 ID |
name | String | 否 | 身份组名称 |
icon | String | 否 | 圈组服务器的图标 |
ext | String | 否 | 身份组扩展字段 |
priority | Long | 否 | 优先级,@everyone的优先级为 0,正数,数字越高优先级越高 |
auths | String | 否 | 权限,跟据allow和deny计算出来的 |
删除圈组服务器身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 1589838**4d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx10",
"consid":"e08bde6b-76a3-4498-81cc-f70e1bd1f517",
"eventType":62,
"roleids": [
1377873
],
"serverid":1508367,
"timestamp":"1646964561224",
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e**9453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx10",
"consid":"e08bde6b-76a3-4498-81cc-f70e1bd1f517",
"eventType":62,
"roleids": [
1377873
],
"serverid":1508367,
"timestamp":"1646964561224",
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:62 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
roleids | List | 是 | 身份组ID列表 |
创建频道身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx",
"channelid":1394675,
"consid":"a9232a4b-08cf-48cf-bfdc-c43e6b893da0",
"eventType":63,
"parentroleid":1344659,
"serverid":1492671,
"timestamp":"1646743679075",
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx",
"channelid":1394675,
"consid":"a9232a4b-08cf-48cf-bfdc-c43e6b893da0",
"eventType":63,
"parentroleid":1344659,
"serverid":1492671,
"timestamp":"1646743679075",
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:63 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
parentroleid | long | 否 | 与频道身份组对应的圈组服务器身份组的 ID, 前者继承自后者 |
修改频道身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx10",
"auths":"{\"4\":0,\"2\":1,\"3\":1}",
"channelid":1410395,
"consid":"a97eb837-5e84-48c8-9686-7cd79afd59a2",
"eventType":64,
"roleid":1214273,
"serverid":1508367,
"timestamp":"1646966095954",
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881**4d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx10",
"auths":"{\"4\":0,\"2\":1,\"3\":1}",
"channelid":1410395,
"consid":"a97eb837-5e84-48c8-9686-7cd79afd59a2",
"eventType":64,
"roleid":1214273,
"serverid":1508367,
"timestamp":"1646966095954",
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:64 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
roleid | long | 是 | 身份组ID |
auths | long | 否 | 权限 |
删除频道身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 1589838**19453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx10",
"channelid":1410395,
"consid":"c3ec2396-23f0-46ad-af92-abb510108acf",
"eventType":65,
"roleids": [
1214275
],
"serverid":1508367,
"timestamp":"1646966316321",
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx10",
"channelid":1410395,
"consid":"c3ec2396-23f0-46ad-af92-abb510108acf",
"eventType":65,
"roleids": [
1214275
],
"serverid":1508367,
"timestamp":"1646966316321"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:65 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
roleids | List | 是 | 身份组ID列表 |
在频道下为某个人定制权限回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983**d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx10",
"channelid":1410395,
"consid":"76e359a5-a6ed-4828-ab1e-9e97923e0fc2",
"eventType":66,
"identifyAccid":"yx11",
"serverid":1508367,
"timestamp":"1646966522400"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d ' {
"accid":"yx10",
"channelid":1410395,
"consid":"76e359a5-a6ed-4828-ab1e-9e97923e0fc2",
"eventType":66,
"identifyAccid":"yx11",
"serverid":1508367,
"timestamp":"1646966522400"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:66 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
identifyAccid | String | 是 | 定制权限的帐号 |
删除频道下某人的定制权限回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"qaz",
"accids":["qaz1"],
"channelid":148711,
"consid":"4e671c0a-0a2a-4973-9f60-2a91dac2e874",
"eventType":67,
"serverid":50783,
"timestamp":"1648120902530"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"qaz",
"accids":["qaz1"],
"channelid":148711,
"consid":"4e671c0a-0a2a-4973-9f60-2a91dac2e874",
"eventType":67,
"serverid":50783,
"timestamp":"1648120902530"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:67 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
accids | List | 是 | 需要删除的帐号列表 |
更新频道下用户定制权限回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e**219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"yx10",
"auths":"{\"4\":0,\"2\":1,\"3\":0}",
"channelid":1410395,
"consid":"b48c07a4-76b2-48ae-9379-6fa6b25185ef",
"eventType":68,
"identifyAccid":"yx11",
"serverid":1508367,
"timestamp":"1646967213642"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"yx10",
"auths":"{\"4\":0,\"2\":1,\"3\":0}",
"channelid":1410395,
"consid":"b48c07a4-76b2-48ae-9379-6fa6b25185ef",
"eventType":68,
"identifyAccid":"yx11",
"serverid":1508367,
"timestamp":"1646967213642"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:68 |
accid | String | 是 | 帐号 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
channelid | long | 是 | 频道 ID |
identifyAccid | String | 是 | 定制权限的帐号 |
auths | String | 是 | 权限 |
把某些人拉进某圈组服务器身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**9453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"qaz",
"accids":["qaz1"],
"consid":"c62f3cf7-e8de-48c6-b6db-92c5b9fbdc11",
"eventType":69,
"roleid":83249,
"serverid":50783,
"timestamp":"1648121146807"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"qaz",
"accids":["qaz1"],
"consid":"c62f3cf7-e8de-48c6-b6db-92c5b9fbdc11",
"eventType":69,
"roleid":83249,
"serverid":50783,
"timestamp":"1648121146807"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:69 |
consid | Long | 否 | 长连接唯一标识 |
accid | String | 是 | 帐号 |
serverid | long | 是 | 圈组服务器 ID |
roleid | long | 是 | 身份组ID |
accids | List | 是 | 拉进服务器身份组的帐号列表 |
将某些人移出某个圈组服务器身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**19453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"accid":"qaz",
"accids":[ "qaz1"],
"consid":"003bc565-0d34-4e3a-b742-3d372a2b6b5f",
"eventType":70,
"roleid":83250,
"serverid":50783,
"timestamp":"1648121250604"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898**2194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"accid":"qaz",
"accids":[ "qaz1"],
"consid":"003bc565-0d34-4e3a-b742-3d372a2b6b5f",
"eventType":70,
"roleid":83250,
"serverid":50783,
"timestamp":"1648121250604"
}'
31.3 消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:70 |
consid | Long | 否 | 长连接唯一标识 |
accid | String | 是 | 帐号 |
serverid | long | 是 | 圈组服务器 ID |
roleid | long | 是 | 身份组ID |
accids | List | 是 | 移除服务器身份组的帐号列表 |
批量更新圈组服务器身份组回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e**453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"consid":"48c5304d-094b-4dc4-aba3-ef0c0da60244",
"eventType":71,
"serverIdentifies": [
{
"roleid":1344593,
"priority":3
},
{
"roleid":1344594,
"priority":1
}
],
"serverid":1492622,
"timestamp":"1646742203291"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881**19453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"consid":"48c5304d-094b-4dc4-aba3-ef0c0da60244",
"eventType":71,
"serverIdentifies": [
{
"roleid":1344593,
"priority":3
},
{
"roleid":1344594,
"priority":1
}
],
"serverid":1492622,
"timestamp":"1646742203291"
}'
消息体中的 JSON 字段说明
java回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:71 |
consid | Long | 否 | 长连接唯一标识 |
serverid | long | 是 | 圈组服务器 ID |
serverIdentifies | List | 是 | 身份组ID与优先级对应关系 |
圈组发自定义系统消息回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 1589838**219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"attach":"自定义系统消息attach",
"body":"自定义系统消息SERVER",
"channelId":"148711",
"eventType":72,
"ext":"自定义系统消息-ext",
"fromAccount":"qaz",
"fromClientIp":"183.136.182.140",
"fromClientPort":"24903",
"fromClientType":"IOS",
"fromDeviceId":"aa46740b-1b3c-4c4b-92fe-6a86d8421ddf",
"fromNick":"qaz",
"messageIdClient":"351c6041-70b5-44ae-9aed-cd12e12449b1",
"messageType":"CUSTOM",
"needPushNick":1,
"pushContent":"自定义推送文案",
"pushEnable":1,
"pushPayload":"{\"pushPayload\":\"pushPayload-123456\"}",
"serverId":"50783",
"timestamp":"1648123344807",
"toAccidList":["qaz1","qaz2"]
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e09**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"attach":"自定义系统消息attach",
"body":"自定义系统消息SERVER",
"channelId":"148711",
"eventType":72,
"ext":"自定义系统消息-ext",
"fromAccount":"qaz",
"fromClientIp":"183.136.182.140",
"fromClientPort":"24903",
"fromClientType":"IOS",
"fromDeviceId":"aa46740b-1b3c-4c4b-92fe-6a86d8421ddf",
"fromNick":"qaz",
"messageIdClient":"351c6041-70b5-44ae-9aed-cd12e12449b1",
"messageType":"CUSTOM",
"needPushNick":1,
"pushContent":"自定义推送文案",
"pushEnable":1,
"pushPayload":"{\"pushPayload\":\"pushPayload-123456\"}",
"serverId":"50783",
"timestamp":"1648123344807",
"toAccidList":["qaz1","qaz2"]
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:72 |
serverId | String | 是 | 消息所属的serverId |
channelId | String | 是 | 消息所属的channelId |
fromAccount | String | 是 | 消息发送者的accid |
messageType | String | 是 | 消息类型 |
messageIdClient | String | 是 | 消息发送者这的客户端类型 |
messageIdServer | String | 是 | 服务端生成的消息id,全局唯一 |
fromClientType | String | 是 | 消息发送者这的客户端类型 |
fromDeviceId | String | 否 | 发送设备id |
fromNick | String | 是 | 发送方昵称 |
fromClientIp | String | 否 | 客户端ip |
fromClientPort | String | 否 | 客户端端口 |
body | String | 是 | 消息内容 |
attach | String | 否 | 消息附件 |
ext | String | 否 | 消息自定义扩展字段 |
pushContent | String | 否 | 自定义推送文案 |
pushPayload | String | 否 | 第三方自定义的推送属性,限制json |
pushEnable | Integer | 否 | 是否需要推送, 0:不需要, 1:需要 |
needPushNick | Integer | 否 | 是否需要推送昵称, 0:不需要, 1:需要 |
toAccidList | List | 是 | 接受者的账号列表 |
圈组更新消息回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e09**9453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"body":"更新消息-2022-03-15T19:04:53",
"channelId":1460089,
"eventType":73,
"ext":"更新ext-QChatMsgTag-2022-03-15T19:04:53",
"msg":"更新消息",
"msgId":5900073,
"operatorAccount":"yx",
"operatorClientType":2,
"operatorExt":"更新ext-QChatMsgUpdateTag",
"pushContent":"pushContent-更新消息-2022-03-15T19:04:53",
"pushPayload":"xxx",
"serverId":1574215,
"status":0,
"time":0,
"timestamp":"1647342288190"
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881**4d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"body":"更新消息-2022-03-15T19:04:53",
"channelId":1460089,
"eventType":73,
"ext":"更新ext-QChatMsgTag-2022-03-15T19:04:53",
"msg":"更新消息",
"msgId":5900073,
"operatorAccount":"yx",
"operatorClientType":2,
"operatorExt":"更新ext-QChatMsgUpdateTag",
"pushContent":"pushContent-更新消息-2022-03-15T19:04:53",
"pushPayload":"xxx",
"serverId":1574215,
"status":0,
"time":0,
"timestamp":"1647342288190"
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:73 |
serverId | Long | 是 | 消息所属的serverId |
channelId | Long | 是 | 消息所属的channelId |
time | Long | 是 | 更新时间 |
msgId | Long | 是 | 消息 ID |
body | String | 是 | 消息体 |
ext | String | 否 | 消息自定义扩展字段 |
status | Integer | 否 | 消息状态 |
operatorAccount | String | 是 | 操作人帐号 |
operatorClientType | int | 是 | 客户端类型 |
msg | String | 否 | 消息体 |
operatorExt | String | 否 | 更新消息的消息自定义扩展字段 |
pushContent | String | 否 | 自定义推送文案 |
pushPayload | String | 否 | 第三方自定义的推送属性,限制json |
圈组更新系统通知回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"body":"更新自定义系统消息-2022-03-16T10:47:02.991",
"eventType":74,
"ext":"更新-ext-2022-03-16T10:47:02.991",
"msg":"更新自定义系统消息",
"msgId":853945,
"operatorAccount":"yx1",
"operatorClientType":1,
"operatorExt":"更新自定义系统消息ext",
"pushContent":"pushContent-更新自定义系统消息-2022-03-16T10:47:02",
"pushPayload":"{\"pushPayload\":\"pushContent-更新自定义系统消息\"}",
"status":0,
"timestamp":"1647398823002",
"type":100
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881**4d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"body":"更新自定义系统消息-2022-03-16T10:47:02.991",
"eventType":74,
"ext":"更新-ext-2022-03-16T10:47:02.991",
"msg":"更新自定义系统消息",
"msgId":853945,
"operatorAccount":"yx1",
"operatorClientType":1,
"operatorExt":"更新自定义系统消息ext",
"pushContent":"pushContent-更新自定义系统消息-2022-03-16T10:47:02",
"pushPayload":"{\"pushPayload\":\"pushContent-更新自定义系统消息\"}",
"status":0,
"timestamp":"1647398823002",
"type":100
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:74 |
msgId | Long | 是 | 消息ID |
type | int | 是 | 消息类型 |
body | String | 是 | 消息体 |
ext | String | 否 | 消息自定义扩展字段 |
status | Integer | 否 | 消息状态 |
operatorAccount | String | 是 | 操作人帐号 |
operatorClientType | int | 是 | 客户端类型 |
msg | String | 否 | 消息体 |
operatorExt | String | 否 | 更新消息的消息自定义扩展字段 |
pushContent | String | 否 | 自定义推送文案 |
pushPayload | String | 否 | 第三方自定义的推送属性,限制json |
快捷回复回调
HTTP 示例
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{
"channelId":1459930,
"eventType":75,
"msgIdServer":6227106,
"msgSenderAccid":"yx",
"msgTime":1648818655867,
"opeAccid":"yx",
"opeConsid":"7006289b-2540-4e8c-8941-a10ea346cf08",
"opeNick":"yx",
"opeTime":1648818656283,
"opeType":1,
"serverId":1558485,
"timestamp":"1648818656309",
"type":12
}
cURL 示例
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e**194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{
"channelId":1459930,
"eventType":75,
"msgIdServer":6227106,
"msgSenderAccid":"yx",
"msgTime":1648818655867,
"opeAccid":"yx",
"opeConsid":"7006289b-2540-4e8c-8941-a10ea346cf08",
"opeNick":"yx",
"opeTime":1648818656283,
"opeType":1,
"serverId":1558485,
"timestamp":"1648818656309",
"type":12
}'
消息体中的 JSON 字段说明
回调报文中并不一定每个字段都会有值,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 回调类型,固定为:75 |
serverId | Long | 是 | 服务器ID |
channelId | Long | 是 | 频道Id |
msgIdServer | Long | 是 | 消息id |
msgSenderAccid | String | 是 | 消息发送者accid |
msgTime | Long | 否 | 消息发送时间 |
type | Integer | 否 | 快捷评论的类型 |
opeType | Integer | 是 | 快捷评论的操作类型,1表示添加,2表示删除 |
opeConsid | String | 是 | 操作者的consid |
opeAccid | String | 否 | 快捷评论的操作者accid |
opeTime | String | 否 | 操作时间 |
opeNick | String | 否 | 快捷评论的操作者昵称 |