Twitter API
From Lankyland
API
Update Status
For this very task, we can simply use Twitter’s API :
curl --basic --user username:password --data status="Having fun with cURL" http://twitter.com/statuses/update.xml
Let’s explain this snippet a bit :
--basic --user username:password
- as explained in the API help, the API is password protected by a “Basic Auth”. This takes care of it, by providing your Twitter username and password to the Basic Auth required by the API.
--data status="Having fun with cURL"
- this is the data that will be sent to the API, actually the new status, which will be wrapped in a POST HTTP request.
http://twitter.com/statuses/update.xml
- last but not least, this is the URL of the API
Source: http://www.sakana.fr/blog/2007/03/18/scripting-twitter-with-curl/

