API Reference

Groups.removeMedia

Removes a media item from a group.


Syntax

bool groups.removeMedia ( int groupID, int mediaID )

Arguments

NameTypeRequiredDefault valueDescription
groupIDintRequirednoneThe group ID that the media ID will be removed from.
mediaIDintRequirednoneThe media ID to be removed from 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.newspark.ca/services/rest/groups/removeMedia?groupID=[GROUP_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 removeMedia.

Add a Comment

  • captcha