Tuesday, April 07, 2009

How to post to Twitter

How to write status in Twitter from JSP (and/or Coldfusion). We are using HTTP taglib from Coldtags suite:

<%@ taglib uri="taglib32.tld" prefix="t" %>
<t:GetPost url="http://twitter.com/statuses/update.xml" method="post">
  <t:setAuthorization user="your_twitter_name"
   password="your_twitter_password"/>
  <t:setParam name="status">test from JSP</t:setParam>
</t:GetPost>

P.S. also you can use a specialized Twitter taglib.

2 comments:

Erdenebat Boldbaatar said...

how to post from PHP code?

Abava said...

>how to post from PHP code
try to google this question. A lot of classes ...