API Reference

Events.removeMedia

Removes a media item from an event.


Syntax

bool events.removeMedia ( int eventID, int mediaID )

Arguments

NameTypeRequiredDefault valueDescription
eventIDintRequirednoneThe event ID that the media ID will be removed from.
mediaIDintRequirednoneThe media ID to be removed from the event.

Response

The response for a successful request will be 1.

NameTypeDescription
resultINTOn success the response will be 1.

Sample Response

Sample REST Response
http://api.newspark.ca/services/rest/events/removeMedia?eventId=[EVENT_ID]&mediaID=[MEDIA_ID]
<?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 removeMedia.

Add a Comment

  • captcha