groups.addMember

Syntax

bool groups.addMember ( int groupId, int uid = NULL, int memberType = 2 )

Argument Info

NameTypeRequiredDefault valueDescription
groupIdintRequirednoneThe group ID you are adding the user to.
uidintOptionalNULLThe ID of the user you are adding to a group.
memberTypeintOptional2The 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.

NameTypeDescription
resultINTUpon success the response will be 1.

Return Values

FieldDescriptionPossible Values
1 = invitedaN/A
2 = memberaN/A
9 = adminaN/A