<< 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 Authentication Token from authenticate:
{
- token: Required. The Authentication Token
}
else If passing in Twitter OAuth Echo parameter:
{
}
- media_id: Required. The unique id for a previous video upload (see getId)
Usage Notes:
- 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.