API Reference

Events.addMedia

Adds a media item to an event.


Syntax

array events.addMedia ( int eventID, int mediaID, int position = 0 )

Arguments

NameTypeRequiredDefault valueDescription
eventIDintRequirednoneThe event ID that the media will be added to.
mediaIDintRequirednoneThe media ID that is going to be added to the event.
positionintOptional0The position within the event (default: 0).

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/addMedia?eventID=[EVENT_ID]&mediID=[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 addMedia.

Add a Comment

  • captcha