twitvid

 

Twitvid API Method: getlastbyte

Page history last edited by Dmitry Bezborodov 5 mos ago

<< Back to Twitvid API Documentation

 

getLastByte

Use this method to determine the last byte that was uploaded for a given file. This will tell you at which point in the file to begin resuming the video upload

 

URL:

http://im.twitvid.com/api/getLastByte

 

Formats: 

xml, json

 

HTTP Method:

POST

 

Requires Authentication:

true

 

Parameters:

 

If passing in credentials, you must supply twitter username and password. You can not pass token if passing in credentials:

{

  • username: Required. Your Twitter username.
  • password: Requred. Your Twitter password.

}

else If passing in Authentication Token from authenticate, you can not pass the username and password:

{

  • token: Required. The Authentication Token

}

  • media_id: Required. The unique id for a previous video upload (see getId)

 

Usage Notes:

  • Either pass Twitter username and password, or pass token from authenticate. These are required for authentication.
  • Can only receive last byte data for the authenticated users' uploads

 

Response

          XML example:

         <?xml version='1.0' encoding='UTF-8'?>

         <rsp status='ok'>

               <status_id>1111</status_id>

               <user_id>TwitUsername</user_id> 

               <media_id>HSI49</media_id>

               <last_byte>328409</last_byte> 

          </rsp>

 

          JSON example:

          {"rsp":"ok",

          "status_id":"1111",

          "user_id":"TwitUsername", 

          "media_id":"HSI49",

          "last_byte":"328409"}

 

<< Back to Twitvid API Documentation 

Comments (0)

You don't have permission to comment on this page.