/ Published in: ASP
This script works good condition, and not use "oAuth". Your should get username and password with cleartext (standart html controls) without authentication and just add them into variables in your code... (twitterusername and twitterpassword) And also get status from textbox and set variable named "new_status"
Expand |
Embed | Plain Text
Response.Buffer = True Dim xml Set xml = Server.CreateObject("Microsoft.XMLHTTP") twitter_username = "YOUR USERNAME" 'change to your twitter username twitter_password = "YOUR PASSWORD" 'change to your twitter password new_status = "YOUR STATUS" 'change to your new status xml.Open "POST", "http://" & twitter_username & ":" & twitter_password & "@twitter.com/statuses/update.xml?status=" & server.URLencode(new_status), False xml.setRequestHeader "Content-Type", "content=text/html; charset=iso-8859-1" xml.Send Response.Write xml.responseText 'view Twitter's response Set xml = Nothing
Comments
Subscribe to comments
You need to login to post a comment.

Probably it's not working no longer. Because Twitter completly close their "basic auth".