To access all the latest updates, features & functionality we strongly advise that you use API v2

API v1 Has Been Deprecated

To access all the latest updates, features & functionality we strongly advise that you use API v2

Summary

This API call allows a user to generate new thumbnail for given video.

 /api/videos/{video}/generate_thumb.xml

Formats

  • XML
  • JSON

Arguments

  • thumb_time integer - Specifies time for the frame

Parameters

  • videos is the vzaar video number for that video.

Example

Call http://vzaar.com/api/videos/17069/generate_thumb.xml

Request (http post)

<?xml version="1.0" encoding="UTF-8"?>
  <vzaar-api>
    <video>
      <thumb_time>5</thumb_time>
    </video>
  </vzaar-api>

Response (success - HTTP STATUS CODE: 202):

<?xml version="1.0" encoding="utf-8\"?>
  <vzaar-api>
    <status>Accepted</status>
  </vzaar-api>

Response (failure - HTTP STATUS CODE: 422):

<?xml version="1.0" encoding="utf-8\"?>
  <vzaar-api>
    <status>Failure</status>
    <errors>
      <user>Permission Denied: CURRENT_USER_ID/VIDEO_OWNER_ID</user>
      <thumb_time>Incorrect value: VALUE</thumb_time>
      <metadata>Errors: VIDEO_METADATA_ERRORS</metadata>
    </errors>
  </vzaar-api>


contact us   by phone, mail or twitter...
libraries
ruby java php .net node
affiliates
affiliate program


Powered by Olark