Groups
Read the details of how to use it in Requests.
There's a lib for nodejs here: Click here
To create a group.
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupCreate",
"params": [
"My Fab Group",
[
"[email protected]",
"[email protected]"
]
]
}To add/remove people to a group or demote/promote people.
Change the 'add' for one of these: "remove", "demote" or "promote"
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupParticipantsUpdate",
"params": [
"[email protected]",
[
"[email protected]"
],
"add"
]
}To change the group's subject
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupUpdateSubject",
"params": [
"[email protected]",
"New subject"
]
}To change the group's description
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupUpdateDescription",
"params": [
"[email protected]",
"New Description!"
]
}To change group settings
Change the 'add' for one of these: "not_announcement", "unlocked" or "locked"
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupSettingUpdate",
"params": [
"[email protected]",
"announcement"
]
}To leave a group
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupLeave",
"params": [
"[email protected]"
]
}To get the invite code for a group
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupInviteCode",
"params": [
"[email protected]"
]
}To revoke the invite code for a group
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupInviteRevoke",
"params": [
"[email protected]"
]
}To query the metadata of a group
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupMetadata",
"params": [
"[email protected]"
]
}To join the group using the invitation code
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupAcceptInvite",
"params": [
"INVITE_CODE"
]
}To get group info by invite code
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupInfoFromInvite",
"params": [
"INVITE_CODE"
]
}To join the group using groupInviteMessage
Change GROUP_INVITE_MESSAGE for the message you received through events
{
"connectionId": "YOUR_CONNECTION_ID",
"method": "groupAcceptInviteV4",
"params": [
"[email protected]",
"GROUP_INVITE_MESSAGE"
]
}To get list request join
{
"method": "groupRequestParticipantsList",
"params": [
"[email protected]"
]
}To approve/reject request join
You can change approve for "reject"
{
"method": "groupRequestParticipantsUpdate",
"params": [
"[email protected]",
[
"[email protected]",
"[email protected]"
],
"approve"
]
}