超大群相关回调
更新时间: 2024/07/17 17:57:35
超大群拉人入群回调
HTTP示例:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"beinvitemode":1,"eventType":23,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"50fafe75-2491-4565-9601-aaf7ee4e78ae","inviteList":["wmtest230","wmtest231"],"msg":"拉人进群需要同意","tid"
:23005,"timestamp":"1578569254713"}
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 '{"beinvitemode":1,"eventType":23,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"50fafe75-2491-4565-9601-aaf7ee4e78ae","inviteList":["wmtest230","wmtest231"],"msg":"拉人进群需要同意","tid"
:23005,"timestamp":"1578569254713"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为23,表示是超大群拉人入群回调 |
tid | Long | 是 | 超大群id |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
beinvitemode | Integer | 是 | 被邀请人同意方式,0表示需要同意,1表示不需要同意 |
inviteList | JSONArray | 是 | 邀请的人 |
msg | String | 否 | 邀请附言 |
timestamp | String | 是 | 操作时间,字符串类型 |
超大群踢人出群回调
HTTP示例:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e0**9453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"eventType":24,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"524fa527-db2f-420c-84e5-e606c02626e3","kickList":["wmtest230","wmtest231","wmtest232"],"tid":23005,"timestamp":"1578569287289"}
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 '{"eventType":24,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"524fa527-db2f-420c-84e5-e606c02626e3","kickList":["wmtest230","wmtest231","wmtest232"],"tid":23005,"timestamp":"1578569287289"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为24,表示是超大群踢人出群回调 |
tid | Long | 是 | 超大群id |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
kickList | JSONArray | 是 | 被踢列表 |
timestamp | 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
{"eventType":25,"fromAccount":"wmtest50","fromClientType":"IOS","fromDeviceId":"299a8845-092b-4673-a92e-a5e00d0db2ea","tid":23005,"timestamp":"1578569315872"}
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 '{"eventType":25,"fromAccount":"wmtest50","fromClientType":"IOS","fromDeviceId":"299a8845-092b-4673-a92e-a5e00d0db2ea","tid":23005,"timestamp":"1578569315872"'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为25,表示是超大群退群回调 |
tid | Long | 是 | 超大群id |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
timestamp | String | 是 | 操作时间,字符串类型 |
超大群更新群信息回调
HTTP示例:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 1589838**2194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"announcement":"wmtest1修改群公告测ee","beinvitemode":0,"custom":
"wmtest1wmtest1ee4001","eventType":26,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"f17cb0e1-875a-4038-87f4-47104cde38cd","icon":"https://nimnosdn127.net/MTAxMTAxMA==/bmltYV8yNDI1MTU3Nl8xNTMee2NjcwOTQ3NTQxXzE0MGJmY2YyLTY0NTQtNGE3YS1iYWQ3LTk1MTg1MWFiMGU1Mg==?imageView&createTime=1536670947328?imageView&thumbnail=200x0&quality=85","intro":"666666666ee","teamMuteType":0,"tid":23005,"timestamp":"1578569340710","tname":"wmtest1第三遍1578569344989"}
cURL示例:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898388**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"announcement":"wmtest1修改群公告测ee","beinvitemode":0,"custom":
"wmtest1wmtest1ee4001","eventType":26,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"f17cb0e1-875a-4038-87f4-47104cde38cd","icon":"https://nimnosdn127.net/MTAxMTAxMA==/bmltYV8yNDI1MTU3Nl8xNTMee2NjcwOTQ3NTQxXzE0MGJmY2YyLTY0NTQtNGE3YS1iYWQ3LTk1MTg1MWFiMGU1Mg==?imageView&createTime=1536670947328?imageView&thumbnail=200x0&quality=85","intro":"666666666ee","teamMuteType":0,"tid":23005,"timestamp":"1578569340710","tname":"wmtest1第三遍1578569344989"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为26,表示是超大群更新群信息回调 |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | 是 | 超大群id |
tname | String | 否 | 群名称 |
icon | String | 否 | 群头像 |
custom | String | 否 | 自定义字段 |
intro | String | 否 | 群简介 |
announcement | String | 否 | 群公告 |
servercustom | String | 否 | 服务器自定义字段 |
teamMuteType | Integer | 否 | 群禁言类型,0表示不禁言,1表示禁言普通成员,3表示禁言整个群(包括群主) |
level | Integer | 否 | 最大群成员数量 |
beinvitemode | Integer | 否 | 被邀请人同意方式,0表示需要同意,1表示不需要同意 |
invitemode | Integer | 否 | 谁可以邀请他人入群,0表示管理员,1表示所有人 |
uptinfomode | Integer | 否 | 谁可以修改群资料群,0表示管理员,1表示所有人 |
upcustommode | Integer | 否 | 谁可以更新自定义字段,0表示管理员,1表示所有人 |
timestamp | String | 是 | 操作时间,字符串类型 |
更新超大群群成员信息回调
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
{"custom":"自定义属性","eventType":27,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"129c6283-d3c0-4ee2-a6d9-831a2bbf8c5e","nick":"wmtest1wm修改资料测试线上wmtest12q2","notifyType":1,"tid":23005,"timestamp":"1578569382127"}
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 '{"custom":"wmtest1自定义属性haha线上wmtest122","eventType":27,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"129c6283-d3c0-4ee2-a6d9-831a2bbf8c5e","nick":"wmtest1wm修改资料测试线上wmtest12q2","notifyType":1,"tid":23005,"timestamp":"1578569382127"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为27,表示是更新超大群群成员信息回调 |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | 是 | 超大群id |
nick | String | 否 | 群昵称 |
custom | String | 否 | 自定义字段 |
notifyType | Integer | 否 | 通知类型,0表示正常消息提醒,1表示关闭通知 |
timestamp | String | 是 | 操作时间,字符串类型 |
超大群申请入群回调
HTTP示例:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e**94d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"eventType":28,"fromAccount":"wmtest50","fromClientType":"IOS","fromDeviceId":"e06168fe-0484-4cdc-a383-3f04dc7b763f","joinmode":1,"msg":"申请加群","tid":23005,"timestamp":"1578569428537"}
cURL示例:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 1589838**2b052194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"eventType":28,"fromAccount":"wmtest50","fromClientType":"IOS","fromDeviceId":"e06168fe-0484-4cdc-a383-3f04dc7b763f","joinmode":1,"msg":"申请加群","tid":23005,"timestamp":"1578569428537"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为28,表示是超大群申请入群回调 |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | 是 | 超大群id |
msg | String | 否 | 申请附言 |
joinmode | Integer | 否 | 申请入群权限,0表示不需要申请,1表示需要申请,2表示不允许申请 |
timestamp | String | 是 | 操作时间,字符串类型 |
超大群增加群管理员回调
HTTP示例:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881**52194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"eventType":29,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"e88cbce5-0809-4ca3-a29f-0322b24724ce","managerList":["wmtest7"],"tid":23005,"timestamp":"1578569515550"}
cURL示例:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898388**52194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"eventType":29,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"e88cbce5-0809-4ca3-a29f-0322b24724ce","managerList":["wmtest7"],"tid":23005,"timestamp":"1578569515550"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为29,表示是超大群增加群管理员回调 |
tid | Long | 是 | 超大群id |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
managerList | JSONArray | 是 | 管理员列表 |
timestamp | String | 是 | 操作时间,字符串类型 |
超大群取消群管理员回调
HTTP示例:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 15898388**19453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"eventType":30,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"a6d78083-9fac-4d1a-af44-0d270c2edac3","managerList":["wmtest2","wmtest3","wmtest4"],"tid":23005,"timestamp
":"1578569553081"}
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 '{"eventType":30,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"a6d78083-9fac-4d1a-af44-0d270c2edac3","managerList":["wmtest2","wmtest3","wmtest4"],"tid":23005,"timestamp
":"1578569553081"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为30,表示是取消群管理员回调 |
tid | Long | 是 | 超大群id |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
managerList | JSONArray | 是 | 管理员列表 |
timestamp | String | 是 | 操作时间,字符串类型 |
超大群群禁言回调
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
{"eventType":31,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"c47e955b-546a-44c2-8d43b0dfc1769d3c","mute":1,"tid":23005,"timestamp":"1578569569398"}
cURL示例:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983**453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"eventType":31,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"c47e955b-546a-44c2-8d43b0dfc1769d3c","mute":1,"tid":23005,"timestamp":"1578569569398"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为31,表示是超大群群禁言回调 |
tid | Long | 是 | 超大群id |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
mute | Integer | 是 | 0表示关闭禁言,1表示禁言普通成员,3表示禁言整个群(包括群主) |
timestamp | 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
{"eventType":32,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"37460011-b2f4-4c98b30a4930073c04df","mute":1,"tid":23005,"timestamp":"1578569587591","toAccountList":["wmtest4","wmtest5"]}
cURL示例:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"eventType":32,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"37460011-b2f4-4c98b30a4930073c04df","mute":1,"tid":23005,"timestamp":"1578569587591","toAccountList":["wmtest4","wmtest5"]}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为32,表示是超大群禁言群成员回调 |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | 是 | 超大群id |
toAccountList | JSONArray | 是 | 被操作者 |
mute | Integer | 否 | 0表示不禁言,1表示禁言 |
timestamp | 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
{"eventType":33,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"0222eea7-282d-4a64-998d-4470b556e890","nick":"wmtest3037","tid":23005,"timestamp":"1578569623944","toAccount":"wmtest3"}"
cURL示例:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 15898388**d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"eventType":33,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"0222eea7-282d-4a64-998d-4470b556e890","nick":"wmtest3037","tid":23005,"timestamp":"1578569623944","toAccount":"wmtest3"}"'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为33,表示是超大群更新其他群成员信息回调 |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | 是 | 超大群id |
toAccount | String | 是 | 被操作者 |
nick | String | 否 | 群昵称 |
timestamp | String | 是 | 操作时间,字符串类型 |
超大群转让群回调
HTTP示例:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092**4d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"eventType":34,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"5cf30af4-f926-4e6c-bc3ef6fc45712e6f","leave":false,"tid":23005,"timestamp":"1578569643464","toAccount":"wmtest2"}
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 '{"eventType":34,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"5cf30af4-f926-4e6c-bc3ef6fc45712e6f","leave":false,"tid":23005,"timestamp":"1578569643464","toAccount":"wmtest2"}'
消息体中的JSON字段说明:
回调消息中并不是每个字段都会一定抄送,请注意对各字段的判空处理。
名称 | 类型 | 必须 | 说明 |
---|---|---|---|
eventType | Integer | 是 | 值为34,表示是超大群转让群回调 |
tid | Long | 是 | 超大群id |
fromAccount | String | 是 | 操作者账号 |
fromDeviceId | String | 是 | 操作者设备id |
fromClientType | String | 是 | 操作者客户端类型: AOS、IOS、PC、WINPHONE、WEB、REST |
toAccount | String | 是 | 对方账户 |
leave | Boolean | 是 | 操作者是否退群 |
timestamp | String | 是 | 操作时间,字符串类型 |
此文档是否对你有帮助?