API Reference

Groups.addMedia

Adds a media item to a group.


Syntax

array groups.addMedia ( int groupID, int mediaID )

Arguments

NameTypeRequiredDefault valueDescription
groupIDintRequirednoneThe group ID that the media will be added to.
mediaIDintRequirednoneThe media ID that is going to be added to the group.

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/groups/addMedia?groupID=[GROUP_ID]&mediaID=[MEDIA_ID]&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 addMedia.

Add a Comment

  • captcha