IM Session Message Delivery

Update time: 2021/12/03 10:04:16

Session type message delivery

A third-party developer receives messages at the following URL address: http://yunxinservice.com.cn/receiveMsg.action. The following message delivery for addresses are assumed for this interface and will not be repeated.

1. "eventType"="1"。 Currently includes peer-to-peer chat messages, team chat messages, team operations, friend operations. In CommsEase control panel, they are subdivided into three categories: 1 peer-to-peer chat messages, team chat messages and system notification messages. They correspondes respectively to message body convType attribute of PERSON, TEAM/SUPER_TEAM and CUSTOM_PERSON/CUSTOM_TEAM. 

HTTP example

The following is an example of an HTTP-POST request from CommsEase to the app server.

httpPOST  /receiveMsg.action   HTTP/1.1
Host:  yunxinservice.com.cn
Content-Type:  application/json
CurTime: 1440570500855    //The current UTC timestamp, in milliseconds counted since January 1, 1970 at 0:00:0 (String)
MD5: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //MD5 value calculated based on the body of the request.
CheckSum: 001511b8435e0b28044ca50a78e8f983026c5e01
 
{"attach":"thisisattach","body":"hello","convType":"PERSON","eventType":"1","fromAccount":"111","fromClientType":"IOS","fromDeviceId":"thisisfromdeviceid","fromNick":"mike","msgTimestamp":"1441977355557","msgType":"TEXT","msgidClient":"1234567","msgidServer":"3456789","resendFlag":"0","to":"222"}

cURL example

curlcurl -X POST -H "Content-Type: application/json" -H "CurTime: 1440570500855" -H "MD5: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H "CheckSum: 001511b8435e0b28044ca50a78e8f983026c5e01" -d '{"attach":"thisisattach","body":"hello","convType":"PERSON","eventType":"1","fromAccount":"111","fromClientType":"IOS","fromDeviceId":"thisisfromdeviceid","fromNick":"mike","msgTimestamp":"1441977355557","msgType":"TEXT","msgidClient":"1234567","msgidServer":"3456789","resendFlag":"0","to":"222"}' 'http://yunxinservice.com.cn/receiveMsg.action'

Fields in the JSON data in the message body

javamessage delivery may not cover every field in session messages, please pay attention to null judgment of each field.
The following are fields that are required under normal circumstances:
eventType, convType, to, fromAccount, msgTimestamp, msgType, msgidClient, msgidServer
NameTypeDescription
eventTypeStringValue is 1, which indicates session type message
convTypeStringSpecific session types
PERSON (message of Peer-to-peer session), TEAM (message of team chat session), SUPER_TEAM (message of Superteam chat session)
CUSTOM_PERSON (Peer-to-peer User-defined system notification and built-in friend system notification), CUSTOM_TEAM (User-defined system notification for team chat and built-in team chat system notification), string type
toStringIf convType is PERSON or CUSTOM_PERSON, then to is the user account of message recipient, string type
If convType is TEAM or SUPER_TEAM or CUSTOM_TEAM, then to is tid (team id), can be converted to Long data type
fromAccountStringAccount number of sender, string type
fromClientTypeStringSending client type: AOS, IOS, PC, WINPHONE, WEB, REST, string type
fromDeviceIdStringSending device id, string type
fromNickStringSender's profile name, string type
msgTimestampStringMessage sending time, string type
msgTypeStringThe corresponding message types when convType is PERSON, TEAM, SUPER_TEAM:
TEXT //Text message
PICTURE //Image message
AUDIO //Voice message
VIDEO //Video message
LOCATION //Location message
NOTIFICATION //Team notification messages for events such as Team profile update, team dismissal.
FILE //File message
TIPS //Tip message
CUSTOM //Custom message
NRTC_NETCALL // Audio/video 2.0 CDR message message delivery
convType is the notification message type corresponding to CUSTOM_PERSON:
FRIEND_ADD //The other party requested to be/has been added as a friend
FRIEND_DELETE //Deleted as a friend by the other party
CUSTOM_peer-to-peer_MSG //Peer-to-peer User-defined system notification

convType is the notification message type corresponding to CUSTOM_TEAM (please pay attention to the difference from NOTIFICATION):
TEAM_APPLY //Apply to join team
TEAM_APPLY_REJECT //Reject joining application
TEAM_INVITE //Invite to join team
TEAM_INVITE_REJECT //Reject invitation
CUSTOM_TEAM_MSG //Custom team system notification
Superteam_APPLY //application for joining Superteam Superteam_APPLY_REJECT //reject application for joining Superteam Superteam_INVITE //invitation to join Superteam Superteam_INVITE_REJECT //reject invitation to join Superteam CUSTOM_Superteam_MSG //User-defined system notifications for Superteam
bodyStringMessage content, string type. For chat room messages, this field does not exist. Transfer the content to attach.
attachStringAdditional message, string type. Note: In audio & video call 2.0 message message delivery, the attach field contains call details such as call type and call status. For more details, see [Call bill message structure](/en/docs/TM5MzM5Njk/TYyMDI1MTg?#Call bill message structure).
msgidClientStringMessage ID generated by client, included only when the convType is PERSON or TEAM or SUPER_TEAM, string type
msgidServerStringMessage ID generated by server, can be converted to Long data type
resendFlagStringResend tag: 0 indicates not resend, 1 indicates resend This field is only included when convType is PERSON or TEAM or SUPER_TEAM, and it can be converted to Integer data type
customSafeFlagStringWhether User-defined system notification message is saved offline: 0: not saved offline, 1: saved offline.
This field is only included when convType is CUSTOM_PERSON or CUSTOM_TEAM, and it can be converted to Integer data type
customApnsTextStringPush copy of User-defined system notification message. This field is only included when convType is CUSTOM_PERSON or CUSTOM_TEAM, string type
tMembersStringAccid list of current team members. This field is included only when the team has no more than 200 members and convType is TEAM or CUSTOM_TEAM, string type.
Examples of tMembers format:
{
... // other fields
"tMembers":"[123, 456]" //The relevant accid is 123 and 456
}
extStringMessage extension field
antispamStringIdentifies whether having been through anti-spam process, this field only exists when having gone through the process, can be converted to Boolean type data
yidunResStringContains original processing details of GuardEase anti-spam, this field is only available for applications that have access to related features of GuardEase anti-spam. For details, see the sections below, 1.4.5.1, peer-to-peer: text message and 1.4.5.2, peer-to-peer: image message examples.

Sub-fields of this field are defined as follows:
yidunBusType: 0: GuardEase text anti-spam service; 1. GuardEase image anti-spam service; 2. User profile anti-spam service; 3. User profile picture anti-spam service.

action: processing result: detection result, 0: pass, 1: suspicion, 2: fail. (Only when yidunBusType is 0 or 2, this field is included in message delivery)

labels: Specific anti-spam judgment details:
Reference for text anti-spam:
http://support.dun.163.com/documents/2018041901?docId=150425947576913920 Interpretation of labels field
Reference for image anti-spam:
http://support.dun.163.com/documents/2018041902?docId=150429557194936320 Interpretation of labels field
BlocklistStringIdentifies whether the Peer-to-peer message is blocklisted or not. This field is only available when the message sender is blocklisted, and it can be converted to Boolean data type
ipStringClient IP address of message sender (only available for message sent by SDK)
portStringClient port number of message sender (only available for message sent by SDK)
#### Detailed example of message message delivery

1. Field definition
2. Example of team
3. Example of an advanced team
4. Example of Superteam
5 Example of friend
6. Example of peer-to-peer message
7. Example of team message
8. Example of Superteam message

Field definition
In message delivery for for messages related to ordinary team, advanced team and superteam, the format of some fields is defined as follows:
———————————————————————————————————————————————————————————————
Definition of tinfo field in attach field, in JSONObject format:
    //team profile
  
    "tinfo": {
        "1": "Team id, can be converted to Long data type",
        "3":"Team name",
        "4": "Team type, 0 indicates ordinary team, 1 indicates advanced team, no definition for Superteam",
        "5":"Creator's user account",
        "7": "Team announcement and other attributes",
        "8": "Team effective tag, 0 indicates invalid, 1 indicates valid",
        "9": "Number of effective members of the team",
        "10": "Timestamp of team member list update, accurate to milliseconds",
        "11": "Creation time, accurate to milliseconds",
        "12": "Update time, accurate to milliseconds",
        "14":"Team introduction",
        "15": "Team announcement, toString of JSONArray, format is given below",
        "16": "Team attribute, 0 indicates no application is required to join the team, 1 indicates application is required to join the team",
        "18":"Third party extension field",
        "19":"Third-party server extension field",
        "20":"Team profile picture",
        "21": "Whether the invitee's consent is required", 0: need to be unified (default), 1: do not need to agree,
        "22":"Who can invite others to join the team", 0-administrator (default), 1-everyone.
        "23":"Who can update team profile", 0-administrator (default), 1-everyone.
        "24":"Who can modify custom team attributes", 0-administrator (default), 1-everyone.
    }   
   
"15" team announcement field in tinfo has the following format:
    "tinfo": {
        "15": "
         [
            {
                "title":"This is team announcement title",
                "content":"This is team announcement content",
                "creator":"publisher of team announcement",
                "time":1457075964 //publishing time of team announcement, 10-digit timestamp, accurate to the second
            },
            {}
         ]
        ",
        //Other fields
    }
———————————————————————————————————————————————————————————————
Definition of the uinfos field in the attach field, in JSONArray format:
    //user profile
    "uinfos": [
        {
            "1":"User account",
            "3": "User profile name",
            "4":"User profile picture address",
            "5":"Personal signature",
            "6":"Gender",
            "7":"Mailbox",
            "8":"Birthday",
            "9":"Mobile number",
            "10":"Extension field",
            "12":"Creation time",
            "13":"Update time"
        },
        {}
    ]
———————————————————————————————————————————————————————————————
Interpretation of ID field in attach field:
0: TEAM_INVITE, invite to join team
1: TEAM_KICK, kick from team
2: TEAM_LEAVE, leave the team
3: TEAM_UPDATE, update team profile
4: TEAM_DISMISS, dismiss the team
5: TEAM_APPLY_PASS, joining application is passed
6: TEAM_OWNER_TRANSFER, team owner leaves and transfers owner role
7: TEAM_ADD_administrator, add team administrator
8: TEAM_REMOVE_administrator, remove team administrator
9: TEAM_INVITE_ACCEPT, joining application accepted
10: TEAM_MUTE_TLIST, members of the muted team
401: SUPER_TEAM_INVITE, invite to join Superteam
402: SUPER_TEAM_KICK, kick from Superteam
403: SUPER_TEAM_LEAVE, leave Superteam
404: SUPER_TEAM_UPDATE_TINFO, update Superteam profile
405: SUPER_TEAM_DISMISS, dismiss Superteam
406: SUPER_TEAM_CHANGE_OWNER, change Superteam owner
407: SUPER_TEAM_ADD_administrator, add Superteam administrator
408: SUPER_TEAM_REMOVE_administrator, remove Superteam administrator
409: SUPER_TEAM_MUTE_TLIST, members of muted Superteam
410: SUPER_TEAM_APPLY_PASS, application to join Superteam is passed
411: SUPER_TEAM_INVITE_ACCEPT, invitation to join Superteam is accepted
———————————————————————————————————————————————————————————————
Note: Fields not defined above are of no concern to third parties and can be ignored

Example of team
Create a team
Cc example:
{"attach":"{\"data\":{\"ids\":[\"wangwu\",\"zhaoliu\",\"lisi\"],\"tinfo\":{\"1\":\"11927\",\"10\":\"1458886362629\",\"11\":\"1458886362629\",\"12\":\"1458886362629\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"ordinary team\",\"4\":\"0\",\"5\":\"zhangsan\",\"6\":\"10000\",\"8\":\"1\",\"9\":\"4\"},\"uinfos\":[{\"1\":\"wangwu\",\"11\":\"236911\",\"12\":\"1457417052774\",\"13\":\"1457491548992\",\"2\":\"11011\",\"3\":\"wangwu\",\"6\":\"0\"},{\"1\":\"zhaoliu\",\"11\":\"237017\",\"12\":\"1457492303776\",\"13\":\"1457492303776\",\"2\":\"11011\",\"3\":\"zhaoliu\",\"6\":\"0\"},{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1456885865056\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"1\"}]},\"id\":0}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1458886362746","msgType":"NOTIFICATION","msgidClient":"731f5145-0f98-4ae2-aaa4-ee0f210507d2","msgidServer":"800407420929","resendFlag":"0","tMembers":"[zhangsan]","to":"11927"}
 
Definition of attach field
{
  "data": {
    //ids represents the user accounts that were invited into the ordinary team upon its creation
    "ids":[
        "wangwu","zhaoliu","lisi"
    ],
    //team profile, for details See the definition of tinfo field
    "tinfo": {

    },
    //users that were invited into the ordinary team upon its creation, and the user account information about the team creator
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 0 //Joining invitation of ordinary team, which is required upon team creation
}

Definition of tMembers field:
{
    "tMembers":"[zhangsan]" //ordinary team creator
}
Modify team profile
Cc example:
{"attach":"{\"data\":{\"tinfo\":{\"1\":\"11927\",\"3\":\"Modified ordinary team name\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1456885865056\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"1\"}]},\"id\":3}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1458886916106","msgType":"NOTIFICATION","msgidClient":"dd741c41-0a3a-4ef4-900b-ffbceffe3d22","msgidServer":"800407420931","resendFlag":"0","tMembers":"[zhaoliu, wangwu, zhangsan, lisi]","to":"11927"}

Definition of attach field
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
  
    },
    //users that were invited into the ordinary team upon its creation, and the user account information about the team creator
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 3 //Modify ordinary team profile
}

Definition of tMembers field:
{
    "tMembers":"[zhaoliu, wangwu, zhangsan, lisi]" //ordinary team's members
}
Invite someone to a team
Cc example:
{"attach":"{\"data\":{\"ids\":[\"lisi\"],\"tinfo\":{\"1\":\"11927\",\"10\":\"1458887669091\",\"11\":\"1458886362629\",\"12\":\"1458887669121\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"Modified ordinary team name\",\"4\":\"0\",\"5\":\"zhangsan\",\"6\":\"10000\",\"8\":\"1\",\"9\":\"3\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1456885865056\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"1\"}]},\"id\":0}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1458887669137","msgType":"NOTIFICATION","msgidClient":"e5fe2160-de34-4e1c-a87b-7f298aa7b7b2","msgidServer":"800407420940","resendFlag":"0","tMembers":"[zhaoliu, zhangsan]","to":"11927"}
 
Definition of attach field
{
  "data": {
  	//ids of added user accounts
  	"ids":[
  		"lisi"
  	],
  	//team profile
    //for details, see the definition of tinfo field
    "tinfo": {

    },
    //users who have been added and the user profile of the operator
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 0 //team joining invitation
}

Definition of tMembers field:
{
    "tMembers":"[zhaoliu, zhangsan]" //Original members of the ordinary team, excluding added users
}

Kick someone out of a team
Cc example:
{"attach":"{\"data\":{\"ids\":[\"wangwu\"],\"tinfo\":{\"1\":\"11927\",\"10\":\"1458887253106\",\"11\":\"1458886362629\",\"12\":\"1458887253159\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"Modified ordinary team name\",\"4\":\"0\",\"5\":\"zhangsan\",\"6\":\"10000\",\"8\":\"1\",\"9\":\"3\"},\"uinfos\":[{\"1\":\"wangwu\",\"11\":\"236911\",\"12\":\"1457417052774\",\"13\":\"1457491548992\",\"2\":\"11011\",\"3\":\"wangwu\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1456885865056\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"1\"}]},\"id\":1}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1458887253168","msgType":"NOTIFICATION","msgidClient":"693b8b53-3d0e-445e-b086-debaffa7a376","msgidServer":"800407420932","resendFlag":"0","tMembers":"[zhaoliu, wangwu, zhangsan, lisi]","to":"11927"}
 
Definition of attach field
{
  "data": {
  	//ids of user accounts kicked out of the ordinary team
  	"ids":[
  		"wangwu"
  	],
  	//team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //users who have been kicked out and the user profile of the operator
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 1  //kick from ordinary team
}

Definition of tMembers field:
{
    "tMembers":"[zhaoliu, wangwu, zhangsan, lisi]" //ordinary team members, including users who have been kicked out
}

Leave a team
Cc example:
{"attach":"{\"data\":{\"tinfo\":{\"1\":\"11927\",\"10\":\"1458887477194\",\"11\":\"1458886362629\",\"12\":\"1458887477199\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"Modified ordinary team name\",\"4\":\"0\",\"5\":\"zhangsan\",\"6\":\"10000\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1456885865056\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"1\"}]},\"id\":2}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","fromDeviceId":"","fromNick":"zhangsan","msgTimestamp":"1458887477210","msgType":"NOTIFICATION","msgidClient":"4bcad22a-12de-4691-9ba7-fa112aa46ea7","msgidServer":"800407420936","resendFlag":"0","tMembers":"[wangwu, zhaoliu, zhangsan, lisi]","to":"11927"}
 
Definition of attach field
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
  
    },
    //User profile of those leaving the ordinary team
    //for details, see the definition of uinfos field
    "uinfos": [
        {}
    ]
  },
  "id": 2 //Leave ordinary team
}

Definition of tMembers field:
{
    "tMembers":"[zhaoliu, wangwu, zhangsan, lisi]" //ordinary team members, including users who have left
}
Example of an advanced team
Create an advanced team
Cc example:
{"attach":"{\"tinfo\":{\"1\":\"11620\",\"10\":\"1456802852027\",\"11\":\"1456802852027\",\"12\":\"1456802852027\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"}}","body":"invites you to join the team","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456802852094","msgType":"TEAM_INVITE","msgidServer":"371929","tMembers":"[lisi]","to":"11620"}
 
Definition of attach field
{
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    }
}

Dismiss an advanced team
Cc example:
{"attach":"{\"data\":{\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":4}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","fromNick":"zhangsan","msgTimestamp":"1456810468999","msgType":"NOTIFICATION","msgidClient":"b697a6b2-be71-47f0-8fc0-3c7ff9b15dda","msgidServer":"779872108546","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11621"}
 
Definition of attach field
{
  "data": {
    //User profile of the operator who dismisses the team
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 4 //Dismiss the group
}
 
Definition of tMembers field:
{
    "tMembers":"[lisi]" //A list of all members in the advanced team when it is dismissed, including the team owner
}

Invite someone to an advanced team
Cc example:
{"attach":"{\"tinfo\":{\"1\":\"11623\",\"10\":\"1456817802112\",\"11\":\"1456811497999\",\"12\":\"1456817802112\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"}}","body":"invites you to join the team","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456818444874","msgType":"TEAM_INVITE","msgidServer":"373171","tMembers":"[lisi]","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    }
  }
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //list of users invited to join the team
}
Accept advanced team invitation
Cc example:
{"attach":"{\"data\":{\"id\":\"zhangsan\",\"tinfo\":{\"1\":\"11623\",\"10\":\"1456811521765\",\"11\":\"1456811497999\",\"12\":\"1456811521899\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":9}","convType":"TEAM","eventType":"1","fromAccount":"lisi","fromClientType":"IOS","msgTimestamp":"1456811521946","msgType":"NOTIFICATION","msgidClient":"335cf3bb-8efa-4cde-953d-9aa775f1a2b2","msgidServer":"780006326273","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "id":"Inviter's account",
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the inviter and invitees
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 9 //Advanced team's joining invitation is accepted
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //A list of valid user accounts in the team, including the inviter and invitees
}
Reject advanced team invitation
Cc example:
{"body":"","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"lisi","msgTimestamp":"1456819928681","msgType":"TEAM_INVITE_REJECT","msgidServer":"373998","to":"11623"}

Add an advanced team administrator
Cc example:
{"attach":"{\"data\":{\"ids\":[\"lisi\"],\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":7}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456813138663","msgType":"NOTIFICATION","msgidClient":"3e3e2efe-4f16-4ac2-8669-a8ee17be80bc","msgidServer":"780006326274","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "ids":[
        "administrator's user account 1",
        "administrator's user account 2"
    ],
    //User profile of the operator and the operated
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 7 //Add an administrator to the advanced team
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //account list of valid users in the team, including the operator and the operated
}
Remove an advanced team administrator
Cc example:
{"attach":"{\"data\":{\"ids\":[\"lisi\"],\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":8}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456815660948","msgType":"NOTIFICATION","msgidClient":"a2b8f49a-cc06-4784-a8e4-84b59c9ac85f","msgidServer":"780006326275","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "ids":[
        "removed administrator's user account 1",
        "removed administrator's user account 2"
    ],
    //User profile of the operator and the operated
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 8 //Remove administrator of the advanced team
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //account list of valid users in the team, including the operator and the operated
}
Kick someone out of an advanced team
Cc example:
{"attach":"{\"data\":{\"ids\":[\"lisi\"],\"tinfo\":{\"1\":\"11623\",\"10\":\"1456816081224\",\"11\":\"1456811497999\",\"12\":\"1456816081359\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":1}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456816081368","msgType":"NOTIFICATION","msgidClient":"f3c0437d-fd3c-4900-9b80-ef9c86c1f91f","msgidServer":"780006326276","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "ids":[
        "Kicked user account 1",
        "Kicked user account 2"
    ],
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the operator and the operated
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 1 //Kick out from the advanced team
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //account list of valid users in the team, including the operator and the operated
}
Advanced team application passes (no validation required)
Cc example:
{"attach":"{\"data\":{\"id\":\"lisi\",\"tinfo\":{\"1\":\"11631\",\"10\":\"1457075685304\",\"11\":\"1456823028193\",\"12\":\"1457075963090\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":5}","convType":"TEAM","eventType":"1","fromAccount":"lisi","fromClientType":"IOS","msgTimestamp":"1457076245920","msgType":"NOTIFICATION","msgidClient":"39a89280-edda-47ff-8f2a-3a2a9ae03cf4","msgidServer":"780543197222","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11631"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "id":"user accounts with successful joining application",
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the operator and the operated,
    //Here the operator and the operated are the same person, so uinfos contains two identical information entries
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 5 //Successful application to join the advanced team
}

Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //account list of valid users, including users who have joined using application
}
Apply to join an advanced team (validation required)
Cc example:
{"body":"wangwu apply to join the group","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"lisi","msgTimestamp":"1456821259709","msgType":"TEAM_APPLY","msgidServer":"375024","tMembers":"[zhangsan, li]","to":"11623"}

Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //group owner and administrator's accounts
}
Accept an application for joining a team
Cc example:
{"attach":"{\"data\":{\"id\":\"lisi\",\"tinfo\":{\"1\":\"11623\",\"10\":\"1456821386734\",\"11\":\"1456811497999\",\"12\":\"1456821386758\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"1\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"},{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":5}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456821386769","msgType":"NOTIFICATION","msgidClient":"dd36c8a2-30e7-476a-9608-48879f4d3146","msgidServer":"780006326282","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "id":"user accounts with joining applications",
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the operator and the operated,
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 5 //Successful application to join the advanced team
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //account list of valid users, including users who have joined using application
}
Reject an application for joining a team
Cc example:
{"attach":"{\"tinfo\":{\"1\":\"11623\",\"10\":\"1456821961295\",\"11\":\"1456811497999\",\"12\":\"1456821961295\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"1\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"}}","body":"","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456822044104","msgType":"TEAM_APPLY_REJECT","msgidServer":"375093","to":"11623"}
 
Definition of attach field:
{
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    }
}
Leave an advanced team
Cc example:
{"attach":"{\"data\":{\"tinfo\":{\"1\":\"11623\",\"10\":\"1456817802112\",\"11\":\"1456811497999\",\"12\":\"1456817802112\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":2}","convType":"TEAM","eventType":"1","fromAccount":"lisi","fromClientType":"IOS","fromNick":"lisi","msgTimestamp":"1456817802118","msgType":"NOTIFICATION","msgidClient":"9ea8ad94-7b8e-4793-8302-23b554b3d5ca","msgidServer":"780006326278","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of those leaving the team
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 2 //Leave advanced team
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //account list of valid users, including those who have left the team
}
Update an advanced team
Cc example:
{"attach":"{\"data\":{\"tinfo\":{\"1\":\"11623\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"1\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":3}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456822570528","msgType":"NOTIFICATION","msgidClient":"473b64e3-5b76-4fd8-ba74-b29a8ec71f7d","msgidServer":"780006326286","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11623"}
  
Definition of attach field:
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //information about the operator who updates team profile,
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 3 //Update team profile
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //account list of valid users, including the operator who updates team profile
}
Change the team owner
Cc example:
{"attach":"{\"data\":{\"id\":\"lisi\",\"tinfo\":{\"1\":\"11631\",\"10\":\"1456823264040\",\"11\":\"1456823028193\",\"12\":\"1456823264170\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"advanced team\",\"4\":\"1\",\"5\":\"lisi\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"},{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":6}","convType":"TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"REST","msgTimestamp":"1456823264181","msgType":"NOTIFICATION","msgidClient":"92606e37-e22f-4cd1-a13c-fc6ec7353a1b","msgidServer":"780543197186","resendFlag":"0","tMembers":"[zhangsan, lisi]","to":"11631"}
 
Definition of attach field:
{
  "data": {
    "id":"User account of the new owner"
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //Information of the new and old owners,
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 6 //Update team profile
}
 
Definition of tMembers field:
{
    "tMembers":"[zhangsan, lisi]" //Account list of valid users in the team, including new and old owners
}

Example of Superteam
Create a superteam
Cc example:
{"attach":"{\"tinfo\":{\"1\":\"11620\",\"10\":\"1456802852027\",\"11\":\"1456802852027\",\"12\":\"1456802852027\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"}}","body":"invites you to join the team","convType":"SUPER_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456802852094","msgType":"NOTIFICATION","msgidServer":"371929","to":"11620"}
 
Definition of attach field
{
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    }
}

Dismiss a superteam
Cc example:
{"attach":"{\"data\":{\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":4}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","fromNick":"zhangsan","msgTimestamp":"1456810468999","msgType":"NOTIFICATION","msgidClient":"b697a6b2-be71-47f0-8fc0-3c7ff9b15dda","msgidServer":"779872108546","resendFlag":"0","to":"11621"}
 
Definition of attach field
{
  "data": {
    //User profile of the operator who dismisses the team
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 405    //dismiss Superteam
}

Invite someone to a superteam
Cc example:
{"attach":"{\"tinfo\":{\"1\":\"11623\",\"10\":\"1456817802112\",\"11\":\"1456811497999\",\"12\":\"1456817802112\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"}}","body":"invites you to join the team","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456818444874","msgType":"Superteam_INVITE","msgidServer":"373171","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    }
  }
}
Accept Superteam invitation
Cc example:
{"attach":"{\"data\":{\"id\":\"zhangsan\",\"tinfo\":{\"1\":\"11623\",\"10\":\"1456811521765\",\"11\":\"1456811497999\",\"12\":\"1456811521899\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":9}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"lisi","fromClientType":"IOS","msgTimestamp":"1456811521946","msgType":"NOTIFICATION","msgidClient":"335cf3bb-8efa-4cde-953d-9aa775f1a2b2","msgidServer":"780006326273","resendFlag":"0","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "id":"Inviter's account",
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the inviter and invitees
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 411    //join Superteam using application
}
Reject Superteam invitation
Cc example:
{"body":"","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"lisi","msgTimestamp":"1456819928681","msgType":"Superteam_INVITE_REJECT","msgidServer":"373998","to":"11623"}

Add a superteam administrator
Cc example:
{"attach":"{\"data\":{\"ids\":[\"lisi\"],\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":7}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456813138663","msgType":"NOTIFICATION","msgidClient":"3e3e2efe-4f16-4ac2-8669-a8ee17be80bc","msgidServer":"780006326274","resendFlag":"0","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "ids":[
        "administrator's user account 1",
        "administrator's user account 2"
    ],
    //User profile of the operator and the operated
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 407    //add Superteam administrator
}
Remove a superteam administrator
Cc example:
{"attach":"{\"data\":{\"ids\":[\"lisi\"],\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":8}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456815660948","msgType":"NOTIFICATION","msgidClient":"a2b8f49a-cc06-4784-a8e4-84b59c9ac85f","msgidServer":"780006326275","resendFlag":"0","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "ids":[
        "removed administrator's user account 1",
        "removed administrator's user account 2"
    ],
    //User profile of the operator and the operated
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 408    //remove Superteam administrator
}
Kick someone out of a superteam
Cc example:
{"attach":"{\"data\":{\"ids\":[\"lisi\"],\"tinfo\":{\"1\":\"11623\",\"10\":\"1456816081224\",\"11\":\"1456811497999\",\"12\":\"1456816081359\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":1}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456816081368","msgType":"NOTIFICATION","msgidClient":"f3c0437d-fd3c-4900-9b80-ef9c86c1f91f","msgidServer":"780006326276","resendFlag":"0","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "ids":[
        "Kicked user account 1",
        "Kicked user account 2"
    ],
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the operator and the operated
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 402    //kick from Superteam
}
Superteam application passes (no validation required)
Cc example:
{"attach":"{\"data\":{\"id\":\"lisi\",\"tinfo\":{\"1\":\"11631\",\"10\":\"1457075685304\",\"11\":\"1456823028193\",\"12\":\"1457075963090\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"},{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":5}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"lisi","fromClientType":"IOS","msgTimestamp":"1457076245920","msgType":"NOTIFICATION","msgidClient":"39a89280-edda-47ff-8f2a-3a2a9ae03cf4","msgidServer":"780543197222","resendFlag":"0","to":"11631"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "id":"user accounts with successful joining application",
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the operator and the operated,
    //Here the operator and the operated are the same person, so uinfos contains two identical information entries
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 410    //joined Superteam using application
}
Apply to join a superteam (validation required)
Cc example:
{"body":"wangwu apply to join the team","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"lisi","msgTimestamp":"1456821259709","msgType":"Superteam_APPLY","msgidServer":"375024","to":"11623"}

Accept an application for joining a superteam
Cc example:
{"attach":"{\"data\":{\"id\":\"lisi\",\"tinfo\":{\"1\":\"11623\",\"10\":\"1456821386734\",\"11\":\"1456811497999\",\"12\":\"1456821386758\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"1\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"},{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":5}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456821386769","msgType":"NOTIFICATION","msgidClient":"dd36c8a2-30e7-476a-9608-48879f4d3146","msgidServer":"780006326282","resendFlag":"0","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //Inviter
    "id":"user accounts with joining applications",
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of the operator and the operated,
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 410    //joined Superteam using application
}
Reject an application for joining a superteam
Cc example:
{"attach":"{\"tinfo\":{\"1\":\"11623\",\"10\":\"1456821961295\",\"11\":\"1456811497999\",\"12\":\"1456821961295\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"1\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"}}","body":"","convType":"CUSTOM_TEAM","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456822044104","msgType":"Superteam_APPLY_REJECT","msgidServer":"375093","to":"11623"}
 
Definition of attach field:
{
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    }
}
Leave a superteam
Cc example:
{"attach":"{\"data\":{\"tinfo\":{\"1\":\"11623\",\"10\":\"1456817802112\",\"11\":\"1456811497999\",\"12\":\"1456817802112\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"zhangsan\",\"6\":\"10\",\"8\":\"1\",\"9\":\"1\"},\"uinfos\":[{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":2}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"lisi","fromClientType":"IOS","fromNick":"lisi","msgTimestamp":"1456817802118","msgType":"NOTIFICATION","msgidClient":"9ea8ad94-7b8e-4793-8302-23b554b3d5ca","msgidServer":"780006326278","resendFlag":"0","to":"11623"}
 
Definition of attach field:
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //User profile of those leaving the team
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 403    //leave Superteam
}
Update a superteam
Cc example:
{"attach":"{\"data\":{\"tinfo\":{\"1\":\"11623\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"1\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"}]},\"id\":3}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","msgTimestamp":"1456822570528","msgType":"NOTIFICATION","msgidClient":"473b64e3-5b76-4fd8-ba74-b29a8ec71f7d","msgidServer":"780006326286","resendFlag":"0","to":"11623"}
  
Definition of attach field:
{
  "data": {
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //information about the operator who updates team profile,
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 404    //update Superteam profile
}
Change the superteam owner
Cc example:
{"attach":"{\"data\":{\"id\":\"lisi\",\"tinfo\":{\"1\":\"11631\",\"10\":\"1456823264040\",\"11\":\"1456823028193\",\"12\":\"1456823264170\",\"14\":\"This is team introduction\",\"15\":\"[{\\\"title\\\":\\\"This is team announcement title\\\",\\\"content\\\":\\\"This is team announcement content\\\",\\\"creator\\\":\\\"zhangsan\\\",\\\"time\\\":1457075964}]\",\"16\":\"0\",\"17\":\"0\",\"2\":\"11011\",\"21\":\"0\",\"22\":\"0\",\"23\":\"0\",\"24\":\"0\",\"3\":\"superteam\",\"4\":\"1\",\"5\":\"lisi\",\"6\":\"10\",\"8\":\"1\",\"9\":\"2\"},\"uinfos\":[{\"1\":\"zhangsan\",\"11\":\"142915\",\"12\":\"1438738423546\",\"13\":\"1446624332920\",\"2\":\"11011\",\"3\":\"zhangsan\",\"4\":\"http://b12026.nos.netease.com/MTAxMTAxMA==/bmltYV8xNDI5MTZfMTQzODg2NDI4ODE0Ml81NjM3ZTIxMC1iMjE5LTRhYjgtOGZlOS02MzBjZWFjYmMwZDE=\",\"6\":\"0\"},{\"1\":\"lisi\",\"11\":\"142916\",\"12\":\"1438740370586\",\"13\":\"1438740370586\",\"2\":\"11011\",\"3\":\"lisi\",\"6\":\"0\"}]},\"id\":6}","convType":"SUPER_TEAM","eventType":"1","fromAccount":"zhangsan","fromClientType":"REST","msgTimestamp":"1456823264181","msgType":"NOTIFICATION","msgidClient":"92606e37-e22f-4cd1-a13c-fc6ec7353a1b","msgidServer":"780543197186","resendFlag":"0","to":"11631"}
 
Definition of attach field:
{
  "data": {
    "id":"User account of the new owner"
    //team profile
    //for details, see the definition of tinfo field
    "tinfo": {
 
    },
    //Information of the new and old owners,
    //for details, see the definition of uinfos field
    "uinfos": [
        {},
        {}
    ]
  },
  "id": 406    //change Superteam owner
}
Example of friend
Add a friend
Cc example:
{"attach":"{\"vt\":1}","body":"","convType":"CUSTOM_PERSON","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456827801260","msgType":"FRIEND_ADD","msgidServer":"375387","to":"lisi"}
 
Definition of attach field:
{
  "vt": 1 //vt, type of verification for adding friend. 1: Add friend  without verification; 2: Request to add friend, verification required; 3: Agree to add friend request; 4: Reject add friend request
}
Delete friend
Cc example:
{"convType":"CUSTOM_PERSON","customSafeFlag":"0","eventType":"1","fromAccount":"zhangsan","msgTimestamp":"1456827724200","msgType":"FRIEND_DELETE","msgidServer":"375386","to":"lisi"}
Example of peer-to-peer message
Text message
Cc example:
{"attach":"","body":"Text message","convType":"PERSON","eventType":"1","fromAccount":"zhangsan","fromClientType":"IOS","fromDeviceId":"B0BFF2EB-E2E1-4063-9E73-92FB926BF388","fromNick":"zhangsan","msgTimestamp":"1456888017105","msgType":"TEXT","msgidClient":"f33f0716-6027-47de-a582-37a8dc2d217c","msgidServer":"8364607","resendFlag":"0","to":"lisi","yidunRes":"{\"yidunBusType\":0,\"action\":0,\"labels\":[]}"}
Image message
Cc example:
{"attach":"{\"md5\":\"d0323f8d447abf3df7256bd66f9d5b62\",\"h\":500,\"ext\":\"jpg\",\"size\":9093,\"w\":500,\"name\":\"image sent on 11:09 03-02-2016\",\"url\":\"http:\\/\\/b12026.nos.netease.com\\/MTAxMTAxMA==\\/bmltYV8xNDI5MTVfMTQ1NTY4NzIxMDkyOF8wOWE1ZmVlMS1lOGQ4LTQwMzItOGZkMS0yMWE1ODBjYjA1MWE=\"}","body":"
Was this page helpful?
Yes
No
  • Session type message delivery
  • HTTP example
  • cURL example
  • Fields in the JSON data in the message body
  • Field definition
  • Example of team
  • Example of an advanced team
  • Example of Superteam
  • Example of friend
  • Example of peer-to-peer message