media.rateFile
Syntax
float media.rateFile ( int id, int rating, int uid = 0, bool returnData = false )Argument Info
Type | Description | |||
---|---|---|---|---|
none | Id of the file you are rating. | |||
none | The rating of the file. HAS to be a number between 1 and 10 (inclusive). | |||
0 | Userid of the person making the rating. | |||
false | False (default) to get the rating, true to get the data from getFileInfo. |
Response returnData = 1
If returnData = 1 we return all the file information returned from a media.getFileInfo service call. View the full response from the media.getFileInfo service.
The rating of the file must always be included
If rating is not passed as a valid argument — a number between 0 and 10 an error will be returned.
Response returnData returnData = 0 of removed from request URL
If returnData = 0 or is not included in the URL we will only return the rating of the media item you just sent the request for.
Return Values
Field | Description | Possible Values |
---|