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"
  <t:setParam name="status">test from JSP</t:setParam>

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


Erdenebat Boldbaatar said...

how to post from PHP code?

Coldbeans software said...

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