Rate Media
From KickApps Documentation
Contents |
Overview
Given a media id, rate the media item with a thumbs up / thumbs down, vote or star rating. You can make an HTTP POST or GET request when using this call.
For contest entries and media with a voting type of:
- vote, the only rating allowed will be 1.
- thumbs, the only ratings allowed will be integers 1 (down) or 5 (up).
- stars, the only ratings allowed will be integers from 1( worst)-5 (best).
Note: These ratings are discretely accumulated as number of ratings of value 1,... number of ratings of value 5.
Request URL
http://api.kickapps.com/rest/rate/{rating}/{mediaType}/{mediaId}/{as}
Request Parameters
Required
- t - the user token generated via the "Create Token" API call.
- mediaId – media id
- mediaType – media Type
- rating – Integers from 1 to 5
- Where:
- VotingType for contest entries:
- Thumbs only allows a rating of 1 (down) or 5 (up)
- Vote only allows a rating of 1
- Stars only allows integers from 1 through 5
- Votes aren’t allowed if a mediaObject is a contest entry in a contest where voting isn’t enabled.
- For media that’s not a contest entry:
- Any integer from 1 through 5
- VotingType for contest entries:
- Where:
Response Parameters
- status – 1 on success and -1 on error.
- error – A message indicating the error condition
- errid – A numeric reference to the error condition
- ratingAdded – Boolean value that indicates the comment was rated successfully.
- rating - The average of all ratings for this media.
- votes - The number of ratings issued.
- numOfTimesRated1. The number of times this media item was rated 1. (In scope of Contests release.)
- numOfTimesRated2. The number of times this media item was rated 2. (In scope of Contests release.)
- numOfTimesRated3. The number of times this media item was rated 3. (In scope of Contests release.)
- numOfTimesRated4. The number of times this media item was rated 4. (In scope of Contests release.)
- numOfTimesRated5. The number of times this media item was rated 5. (In scope of Contests release.)
Error codes:
- 69 - Invalid rating for contest entry of voting type <votes || thumbs || stars>
- 70 - Votes aren’t allowed for this contest at this time
List of KickApps API Calls
Note: Occasionally (and without advanced warning) we modify our API calls by adding new parameters in the response payload. Please keep this in mind when designing your strategy for parsing our responses.
Favorites









