Set Video Thumbnail

From KickApps Documentation

Jump to: navigation, search

This API enables authorized users to set the thumbnail image associated with a video in their KickApps library. The thumbnail IDs of all available thumbnail images for a video are returned by the Get Video Thumbnails API. To set one of those thumbnail images as the thumbnail image for a specific video, authorized users pass its thumbnail ID to this API.

Contents

Request

HTTP Verb

GET

URI

http://api.kickapps.com/rest/customers/asId/videos/videoId/thumbnail/set

URI Parameters

As shown above, your call will include the following parameters:

  • asId. The affiliate site ID for the site to which the given video belongs.
  • videoId. The ID of the video.


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".
  • thumbnailId. Integer. The ID of the thumbnail you wish to use for the designated video, as returned by the get thumbnails API.

Permissions

  • Affiliate Webmaster: The Affiliate Webmaster may set the thumbnail on any video in his/her AS ID.
  • Editors: Editors may set the thumbnail on any video within their AS ID, except for videos contributed by the Affiliate Webmaster or by Admins within their AS ID.
  • Admins: Admins may set the thumbnail on any video within their AS ID, except for videos contributed by the Affiliate Webmaster.
  • Members: Members may only set the thumbnail on videos that they have contributed.


Response: Success

HTTP Status Code

200 OK

{
  "status": "1",
  "message": "Video #{videoId} is now using thumbnail ID #{thumbnailId}."
}

Response: Error

HTTP Status Code

400

Invalid Token

{
  "status": "-1",
  "message": "Invalid token"
}

No video ID or video ID is marked as deleted

{
  "status": "-1",
  "message": "There is not a video with videoId #{the video ID passed into the URI}."
}

No thumbnail with thumbnailId

{
  "status": "-1",
  "message": "Video #{videoId} does not have a thumbnail whose ID is #{thumbnailId}.  Please try another thumbnailId."
}


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.