Twitter message post in Titanium

I got some code by doing search which is doing a lot for me in showing the my tweets in tableview,till now fine. I want to add one more functionality to it that user can post the message from the sameapp.

So I just modified the code as per. While I hit the request I got result status as successful but message is not posting to my wall. I have all keys and getting access token as well.

 var client = Twitter({
      consumerKey: "have Key ",
      consumerSecret: "have Key",
      accessTokenKey: accessTokenKey, 
      accessTokenSecret: accessTokenSecret

client.request("1/statuses/update.json", {status:'TEST'}, 'GET', function(e) {
              if (e.success) {alert(e.success);

          } else  {

Updated: I have go through the Twitter Dev API This is the URL with required parameter "status". What am I doing wrong?


You are sending GET request to update status whereas twitter api needs it to be a POST request.

Try something like

client.request( "1/statuses/update.json", {status:'TEST'}, 'POST', function(e) {
          if (e.success)
          } else  {

Check out this application:

From what I understand this is a fully working example of a twitter app created using Titanium Mobile. Perhaps you can follow the logic in here and see where you need to adjust.

Need Your Help

AngularJS and Autobahn.js WAMP Implementation

javascript angularjs websocket publish-subscribe autobahn

What is the best way to create an AngularJS Service that uses Autobahn.js 0.8.1 to implement WAMP v1 (WebSocket Application Messaging Protocol)? Ideally, I would like the websocket to be accessible...

Selecting a DOCTYPE for HTML 5 + all browsers

html html5 cross-browser doctype

I'm using some HTML5 features on a web page and wondered what the best DOCTYPE is. Currently, this is the DOCTYPE and XMLNS: