| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

update

Page history last edited by Shaheer Ahmed 14 years, 2 months ago

<< Back to Tvider API Documentation

 

statuses/update 

Updates the status of the user, using the text & multimedia that would be twitted in the user's Twitter account. This method is used once the media file is uploaded using chunkUpload.

 

URL:

http://tvider.com/api/statuses/update.format

 

Format:

json

 

HTTP Method:

POST

 

Requires Authentication:

true

 

Authorization: (to be set as Authorization header as done in authenticate)

Basic HTTP authorization required. Username and password should be in Base64 encoded format.

 

Parameters: (to be sent in POST request body)

  • mediaId - Unique id of the media file that was uploaded. (mediaId is returned in the response of initChunkUpload as well as chunkUpload)
  • text - Text that goes along with media file. (Can be left blank. Maximum length: 110 characters.)

 

Usage notes:

  • POST request body:
    1. Replace " "(space) with "+"(plus sign) in the text.
    2. String postRequest = "mediaId=" + mediaId + "&text=" + text;
  • Access-token header: (required to access complete data)

               Key: "twiteract-api-access-token"

               Value: Base64.base64Encode( "umundo".getBytes() )

  • Content-Type header: (specifies the type of content)

               Key: "Content-Type"

               Value: "application/x-www-form-urlencoded"

 

Response:

  • In case Twitter status is successfully updated:         

{"result":

     {"duration":0,

     "statusId":0,

     "mediaStatus":"UPLOADED",

     "abuse":0,

     "profileImageUrl":null,

     "streamUrl":null,

     "views":0,

     "isoLanguageCode":null,

     "createdAt":1260351795057,

     "tweetSource":null,

     "fileUrl":null,

     "mobThumbUrl":null,

     "mediaId":4029,

     "fromUserId":54535356,

     "textTweet":"someText",

     "favourite":0,

     "logUrl":"http://someURL",

     "id":3492,

     "fromUser":"someUser",

     "webThumbUrl":null,

     "sourceMediaType":"IMAGE",

     "toUserId":null,

     "toUser":null,

     "commentCount":0

     },

"error":null,

"responseTime":"Response Time: 0.0 s"

} 

 

<< Back to Tvider API Documentation

Comments (0)

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