API Reference

Events.updateMember

Updates a member's status in an event.

This can be used to promote a member to admin, or demotion.

The possible member types are 1 = invited, 2 = member and 9 = admin.


Syntax

bool events.updateMember ( int eventId, int uid, int memberType )

Arguments

NameTypeRequiredDefault valueDescription
eventIdintRequirednoneThe event ID that you are updating the member in.
uidintRequirednoneThe ID of the member you are updating.
memberTypeintRequirednoneThe updated member type that you are assigning to the user ID.

Response

This service will return 1 if the user's member type has been updated successfully.

NameTypeDescription
resultINTUpon success the response will be 1.

Sample Response

Sample REST Response
http://api.newspark.ca/services/rest/events/updateMember?eventId=[GROUP_ID]&uid=[USER_ID]&memberType=[UPDATED_USER_TYPE]&APIKEY=[APIKEY]
<?xml version="1.0" encoding="UTF-8"?>
<result>1</result>
Sample JSON Response
{
    "status": true,
    "result": 1
}

Code examples

0 comments

Be the first to comment on updateMember.

Add a Comment

  • captcha