API Reference

Media.getUserRatingforFile

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.


Syntax

mixed media.getUserRatingForFile ( mixed mid, mixed uid )

Arguments

NameTypeRequiredDefault valueDescription
midmixedRequirednone
uidmixedRequirednone

Sample Response

Sample REST Response
http://api.filemobile.com/services/rest/media/getUserRatingForFile?mid=[MEDIA_ID]&uid=[USER_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 getUserRatingforFile.

Add a Comment

  • captcha