API Reference

Events.isMediaInEvent

Checks whether a media item is in an event.

A simple boolean will be returned, 1 if the media item is in the event, 0 otherwise.


Syntax

bool events.isMediaInEvent ( int eventID, int mediaID )

Arguments

NameTypeRequiredDefault valueDescription
eventIDintRequirednoneThe event ID you want to check if a media item is a member of.
mediaIDintRequirednoneThe media ID you want to check if it is a member of the specified event.

Response

The response will contain if the media item is in the specified event ID.

NameTypeDescriptionSuccessERROR
resultINTIf the media ID is a member of the event a response of 1 will be returned. If the media item is not a member of the event the response will be empty.<result>1</result><result/>

Sample Response

Sample REST Response
http://api.filemobile.com/services/rest/events/isMediaInEvent?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 isMediaInEvent.

Add a Comment

  • captcha