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 upload subtitle for given video.

 /api/subtitle/upload.xml

Formats

  • XML
  • JSON

Arguments

  • language string - Specifies subtitle's language
  • video_id integer - Specifies video id
  • body string - Specifies subtitle's body. We do not allow to pass files, only file's content.

Example

Call http://vzaar.com/api/subtitle/upload.xml

Request (http post)

<?xml version="1.0" encoding="UTF-8"?>
  <vzaar-api>
    <subtitle>
      <language>en</language>
      <video_id>1234</video_id>
      <body>1\n00:00:17,440 --> 00:01:20,375\n</body>
    </subtitle>
  </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>
      <video>VIDEO_ID Not Found</video>
      <subtitle>Cannot save subtitle: SUBTITLE_ERRORS</subtitle>
    </errors>
  </vzaar-api>


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


Powered by Olark