groups.addMember
Syntax
bool groups.addMember (
int groupId,
int uid = NULL,
int memberType = 2 )
Argument Info
Name | Type | Required | Default value | Description |
---|
groupId | int | Required | none | The group ID you are adding the user to. |
uid | int | Optional | NULL | The ID of the user you are adding to a group. |
memberType | int | Optional | 2 | The permissions you are giving the new member access to. The possible values are: 1 = invited, 2 = member, 9 = admin. |
Response
Will return whether or not the member has been successfully added to the desired group.
Name | Type | Description |
---|
result | INT | Upon success the response will be 1. |
Return Values
Field | Description | Possible Values |
---|
1 = inviteda | N/A |
2 = membera | N/A |
9 = admina | N/A |