API Reference

Groups.addMedia

Adds a media item to a group.


Syntax

array groups.addMedia ( int groupID, int mediaID, int position = 0 )

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.
positionintOptional0The position of the media if group media requires specific order, 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/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