events.addMember
Syntax
bool events.addMember (
int eventId,
int uid = NULL,
int memberType = 2 )
Argument Info
| Name | Type | Required | Default value | Description |
|---|
| eventId | int | Required | none | The event ID you are adding the user to. |
| uid | int | Optional | NULL | The ID of the user you are adding to a event. The uid is NOT required since the logged-in user's id is used if a uid is not passed to this function. |
| 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 event.
| 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 |