Thanks. I got it working. Here is the steps. (may be this information can be 
published in the website for others)
Step-0: Generate TokenLogin to ESME via WebGui and used the Tokens menu at the 
top to create a new token.
Step-1:Construct the curl commandHere is my example-

curl -X POST -v -u [your user id]:[your token from step-0] -d status="my curl 
message on feb 24" http://localhost:8080/esme/twitter/statuses/update.xml
My ESME has 'esme' context running in Jetty. I didn't make any config change 
and is the default deployment. My WebGUI login is,http://localhost:8080/esme/
Step-2: Execute curl commandMake sure you have curl installed on your system. 
My system is Ubuntu. Cut n paste the curl command in the terminal and hit 
enter. (For convenience you can keep your WebGui running to check the message).
After you hit enter, you should get 200 ok status from the server and a XML 
response. You can check the new message in the WebGUI and it updates REAL TIME! 
( no refresh needed)
Run multiple times curl to see the updates in WebGui. I used Firefox.
Best,-Uday.
--- On Tue, 2/23/10, Richard Hirsch <[email protected]> wrote:

From: Richard Hirsch <[email protected]>
Subject: Re: curl API example
To: [email protected]
Date: Tuesday, February 23, 2010, 3:36 PM

http://[USER]:[tok...@localhost:80/twitter/statuses/update.xml
status=[MESSAGE]

Via HTTP POST

On Tue, Feb 23, 2010 at 4:16 PM, Uday Subbarayan
<[email protected]> wrote:
> How do I POST a message via API using curl for my account in my local 
> environment?
>
> Thanks,
> Uday.
>
>
>
>



      

Reply via email to