Retrieve Related Media
From KickApps Documentation
Template:AvailableJuly22 Use this call to retrieve related items for a media by passing its media id.
http://api.kickapps.com/rest/media/related/{mediaType}/{mediaId}/{as}
Contents |
Parameters
- mediaType. Required. String. Suported media types: audio, video, photo, set and blogs
- as. Required. Integer. The site that the media belongs to. as is unique for each of the affiliate's sites.
Post Parameters
- t. String. Required. Your access permissions.
- callback. String. Optional. The name of your JavaScript callback function.
- clientIP. String. Optional. Use the clientIP parameter to pass the IP address of the user making the call. If the IP has been blocked by the webmaster under the Affiliate Center -> Manage Members section, an error message will be returned starting with "status":"-1","error":"This IP address has been banned".
Payload
On success, a payload that starts with status = 1 is returned. For each related media the following information is returned. Note: This call is only supported in JSON format.
- author. The username of the member who uploaded the media.
- avgRating. The average rating calculated using all the ratings issued for this media.
- createdAt. A nested object stating when the media was created in the following format. All times are returned as Greenwich Mean Time (GMT).
dayOfMonth month hour:minute:second GMT- This would appear as follows:
"createdAt":"22 Feb 2008 02:07:19 GMT"
- id. The id of the media.
- keywords. A comma separated list of Keywords assigned to the media.
- mediaAdminTag. A comma-separated list of tags added by administrators or webmasters.
- mediaType. The type of media.
- name. The name of the media.
- playpageurl. The url of the play page.
- siteId. The affiliate site ID that the media belongs to.
- siteName. The name of the site that the media belongs to.
- thumb_320_240. The path to media preview in 320x240 dimension.
- url. The url for the media location.
- userId. User id for the member who uploaded the media.
- views. The number of times this media item was viewed. views increments each time the media item is viewed.
- totalMediaItems. Only returned when Set media type is used. It is the total number of media items inside the set.
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






