API Reference


Returns if a user has rated or voted for a specific file.

If the user has rated, this function will return the rating; If the user hasn't already it will return false.

We will also return the appropriate error message if the MID or the UID are incorrect or not found in our system.


int media.getUserRatingForFile ( int mid, int uid )


NameTypeRequiredDefault valueDescription
midintRequirednoneThe media ID.
uidintRequirednoneA user ID.


The options array may contain the following parameters.

NameTypeDescriptionDefault ValuesPossible Values
resultINTThe response will be 1 if the user has rated the specified media item. If the user has not rated the media item we will return an empty response. If the user ID does not exist we will return an empty response.emptyempty, 1 (success), error message

Sample Response

Sample REST Response
<?xml version="1.0" encoding="UTF-8"?>
Sample JSON Response
    "status": true,
    "result": 1

Code examples


Be the first to comment on getUserRatingforFile.

Add a Comment

  • captcha