Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created November 12, 2009 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kwhinnery/233193 to your computer and use it in GitHub Desktop.
Save kwhinnery/233193 to your computer and use it in GitHub Desktop.
var url = "https://"+un+":"+pw+"@twitter.com/statuses/update.json";
var xhr = Titanium.Network.createHTTPClient();
xhr.onload = function() {
// Handle response
};
xhr.open("POST",url);
xhr.send({ status:'My awesome tweet!' });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment