Post a tweet
Does anyone have a example of how to post a tweet? following twitter.js and twitter api but I cant follow it. thanks for any help
2 Answers
-
Accepted Answer
For your convenience I posted her the code snippet by Kevin Whinnery from this post - http://support.appcelerator.net/discussions/support/1129-http-basic-authentication. Hope this helps…
var url = "https://username:password@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!' });
-
i tried this i thinks it's not working know