Summary

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

 /api/videos/{video_id}/upload_thumb.xml

Formats

  • XML
  • JSON

Request

  • POST multipart/form-data

Authentication

  • Required

Parameters

  • video_id is the vzaar video id for that video

Example

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

You need to send multipart/form-data request which should be signed by access token.

Here is an exmaple for the request body:

--537b0939\r\nContent-Disposition: form-data; name="vzaar-api[thumbnail]"; filename="my_image.jpeg"\r\nContent-Type: image/jpeg\r\n\r\n\xFF\xD8\xFF\xE.....--FILE--BODY--GOES--HERE--.....\xF3O4\x9Dϯ\xFF\xD9\r\n--537b0939--\r\n\r\n

Please make sure to have set "vzaar-api[thumbnail]" as a value for the "name" atrribute.

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>
    </errors>
  </vzaar-api>


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


Powered by Olark