esme-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uday Subbarayan <>
Subject Re: curl API example
Date Wed, 24 Feb 2010 15:20:02 GMT
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.
--- On Tue, 2/23/10, Richard Hirsch <> wrote:

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



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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message