Supergroup channel
Update time: 2023/09/25 01:39:39
Callbacks related to superteam
Callback - invite someone into superteam
-
Example - request of inviting someone into superteam:
19.1. HTTP example
19.2. cURL example
19.3. JSON field in message body
19.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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":"Joining invitation requires consent","tid"
:23005,"timestamp":"1578569254713"}
19.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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":"Joining invitation requires consent","tid"
:23005,"timestamp":"1578569254713"}'
19.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 23, which indicates Superteam joining application callback |
tid | Long | Yes | Superteam id |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
beinvitemode | Integer | Yes | Whether the invitee's consent is required, 0-consent required, 1- consent not required. |
inviteList | JSONArray | Yes | Invitee |
msg | String | No | Invitation P.S. |
timestamp | String | Yes | Operation time, string type |
Callback - kick someone out of a superteam
-
Example - request of kicking someone out of a superteam:
20.1. HTTP example
20.2. cURL example
20.3. JSON field in message body
20.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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"}
20.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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"}'
20.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 24, which indicates kick from Superteam callback |
tid | Long | Yes | Superteam id |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
kickList | JSONArray | Yes | List of kicked members |
timestamp | String | Yes | Operation time, string type |
Callback - leave a superteam
-
Example - request of leaving a superteam:
21.1. HTTP example
21.2. cURL example
21.3. JSON field in message body
1.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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"}
21.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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"'
21.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 25, which indicates leave Superteam callback |
tid | Long | Yes | Superteam id |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
timestamp | String | Yes | Operation time, string type |
Callback - update Superteam profile
-
Example - request of updating Superteam profile:
22.1. HTTP example
22.2. cURL example
22.3. JSON field in message body
22.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"announcement":"wmtest1 team announcement change testee","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 Third time 1578569344989"}
22.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"announcement":"wmtest1 team announcement change testee","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 Third time 1578569344989"}
22.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 26, which indicates update SuperTeam profile callback |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | Yes | Superteam ID |
tname | String | No | Team name |
icon | String | No | Team profile picture |
custom | String | No | Custom field |
intro | String | No | Team introduction. |
announcement | String | No | Team announcement. |
servercustom | String | No | Server custom field. |
teamMuteType | Integer | No | Team mute type, 0 indicates no muting, 1 indicates muting regular members, 3 indicates muting the team (including its owner). |
level | Integer | No | Maximum number of team members |
beinvitemode | Integer | No | Whether the invitee's consent is required, 0-consent required, 1- consent not required. |
invitemode | Integer | No | Who can invite others to join the team, 0-administrator, 1-everyone. |
uptinfomode | Integer | No | Who can update team profile, 0-administrator, 1-everyone. |
upcustommode | Integer | No | Who can update custom fields, 0-administrator, 1-everyone. |
timestamp | String | Yes | Operation time, string type. |
Callback - update Superteam member profile
-
Example - request of updating Superteam member profile
23.1. HTTP example
23.2. cURL example
23.3. JSON field in message body
23.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
CurTime: 1541583920979
MD5: e89c284a5ad9a76b3176e23108920f81
CheckSum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1
Content-Type: application/json
Cache-Control: no-cache
{"custom":"Custom attributes ","eventType":27,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"129c6283-d3c0-4ee2-a6d9-831a2bbf8c5e","nick":"wmtest1wm Online test of info modification wmtest12q2","notifyType":1,"tid":23005,"timestamp":"1578569382127"}
23.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-H 'cache-control: no-cache' \
-H 'checksum: 6f08c5ee2dd16a5fc34a12005e5d5f1411e657a1' \
-H 'content-type: application/json' \
-H 'curtime: 1541583920979' \
-H 'md5: e89c284a5ad9a76b3176e23108920f81' \
-d '{"custom":"wmtest1 custom attribute haha online wmtest122","eventType":27,"fromAccount":"wmtest1","fromClientType":"IOS","fromDeviceId":"129c6283-d3c0-4ee2-a6d9-831a2bbf8c5e","nick":"wmtest1wm Online test of info modification wmtest12q2","notifyType":1,"tid":23005,"timestamp":"1578569382127"}
23.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 27, which indicates update Superteam member profile callback |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | Yes | Superteam id |
nick | String | No | Team profile name |
custom | String | No | Custom field |
notifyType | Integer | No | Notification type, 0 indicates normal message alert, 1 indicates notification disabled |
timestamp | String | Yes | Operation time, string type |
Callback - apply to join a superteam
-
Example - request of applying to join a superteam:
24.1. HTTP example
24.2. cURL example
24.3. JSON field in message body
24.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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":"Joining application","tid":23005,"timestamp":"1578569428537"}
24.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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":"Joining application","tid":23005,"timestamp":"1578569428537"}
24.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 28, which indicates Superteam joining application callback |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | Yes | Superteam id |
msg | String | No | Application P.S. |
joinmode | Integer | No | Permission to joining application, 0 indicates no application is required, 1 indicates application is required, 2 indicates application is not allowed |
timestamp | String | Yes | Operation time, string type |
Callback - add a superteam administrator
-
Example - request of adding a superteam administrator:
25.1. HTTP example
25.2. cURL example
25.3. JSON field in message body
25.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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","administratorList":["wmtest7"],"tid":23005,"timestamp":"1578569515550"}
25.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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","administratorList":["wmtest7"],"tid":23005,"timestamp":"1578569515550"}'
25.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 29, which indicates add Superteam administrator callback |
tid | Long | Yes | Superteam id |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
administratorList | JSONArray | Yes | administrator list |
timestamp | String | Yes | Operation time, string type |
Callback - remove a superteam administrator
-
Example - request of removing a superteam administrator
26.1. HTTP example
26.2. cURL example
26.3. JSON field in message body
26.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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","administratorList":["wmtest2","wmtest3","wmtest4"],"tid":23005,"timestamp
":"1578569553081"}
26.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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","administratorList":["wmtest2","wmtest3","wmtest4"],"tid":23005,"timestamp
":"1578569553081"}'
26.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 30, which indicates remove team administrator callback |
tid | Long | Yes | Superteam id |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
administratorList | JSONArray | Yes | administrator list |
timestamp | String | Yes | Operation time, string type |
Callback - Mute Superteam
-
Example - request of keeping Superteam members muted:
27.1. HTTP example
27.2. cURL example
27.3. JSON field in message body
27.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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"}
27.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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"}'
27.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 31, which indicates mute Superteam callback |
tid | Long | Yes | Superteam id |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
mute | Integer | Yes | 0 indicates no muting, 1 indicates muting regular members, 3 indicates muting the team (including its owner) |
timestamp | String | Yes | Operation time, string type |
Callback - Mute Superteam
-
Example - request of keeping Superteam members muted:
28.1. HTTP example
28.2. cURL example
28.3. JSON field in message body
28.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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"]}
28.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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"]}'
28.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 32, which indicates callback for muting Superteam members |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | Yes | Superteam id |
toAccountList | JSONArray | Yes | Operation recipient |
mute | Integer | No | 0 indicates no muting, 1 indicates muted |
timestamp | String | Yes | Operation time, string type |
Callback - Update Superteam member profile
-
Example - request of updating other Superteam member profile
29.1. HTTP example
29.2. cURL example
29.3. JSON field in message body
29.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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"}"
29.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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"}"'
29.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 33, which indicates callback for updating other Superteam member profile |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
tid | Long | Yes | Superteam id |
toAccount | String | Yes | Operation recipient |
nick | String | No | Team profile name |
timestamp | String | Yes | Operation time, string type |
Callback - transfer a superteam
-
Example - request of transferring a superteam:
30.1. HTTP example
30.2. cURL example
30.3. JSON field in message body
30.1 HTTP example:
httpPOST /receiveMsg.action HTTP/1.1
Host: yunxinservice.com.cn
AppKey: 158983881e092b052194d219453d6542
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"}
30.2 cURL example:
curlcurl -X POST \
http://yunxinservice.com.cn/receiveMsg.action \
-H 'appkey: 158983881e092b052194d219453d6542' \
-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"}'
30.3 JSON field in message body:
javaNot every field in the callback message will necessarily be copied. Please pay attention to the nulling of each field.
Name | Type | Required | Description |
---|---|---|---|
eventType | Integer | Yes | Value is 34, which indicates transfer Superteam callback |
tid | Long | Yes | Superteam id |
fromAccount | String | Yes | Operator account |
fromDeviceId | String | Yes | Operator device id |
fromClientType | String | Yes | Operator client type: AOS、IOS、PC、WINPHONE、WEB、REST |
toAccount | String | Yes | Counterparty account |
leave | Boolean | Yes | Whether the operator leaves the team |
timestamp | String | Yes | Operation time, string type |