API Reference

Events.addMedia

Adds a media item to an event.


Syntax

bool events.addMedia ( int eventID, int mediaID )

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.

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.filemobile.com/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