You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@esme.apache.org by Chatree Srichart <ch...@gmail.com> on 2010/01/15 11:17:21 UTC

How to create account through API?

Hi all,

I don't need to create new user account through web page. How to create user
account through API with Java program?

Regards,

Re: How to create account through API?

Posted by Richard Hirsch <hi...@gmail.com>.
Thanks.

D.

On Fri, Jan 15, 2010 at 2:39 PM, Ethan Jewett <es...@gmail.com> wrote:
> Hi Dick and Chatree,
>
> Sorry for the radio silence. It has been a crazy week. These methods
> are now documented on the API2 wiki page at
> http://cwiki.apache.org/confluence/display/ESME/API+2.0+-+Design
>
> (and by the way, the method is POST /api2/users ;-)
>
> In order to use this method the user calling the API *must* be defined
> with the "intergration-admin" role in a property file (take a look at
> the test.default.props file in the /server/resources/props directory
> as an example. If you have not done anything to a property file you
> are definitely going to get a 403, since a normal user should not be
> able to use this method.
>
> Ethan
>
> On Fri, Jan 15, 2010 at 5:30 AM, Richard Hirsch <hi...@gmail.com> wrote:
>> This is a new functionality that currently isn't documented well in the wiki
>>
>> Use the "users/addUser" request method.
>>
>> I'd look in the api2 tests to get some hints:
>> http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/test/scala/org/apache/esme/api/API2Test.scala?view=markup
>>
>> @Ethan: can you help out and document this more in the wiki?
>>
>> D.
>>
>> On Fri, Jan 15, 2010 at 11:17 AM, Chatree Srichart
>> <ch...@gmail.com> wrote:
>>> Hi all,
>>>
>>> I don't need to create new user account through web page. How to create user
>>> account through API with Java program?
>>>
>>> Regards,
>>>
>>
>

Re: How to create account through API?

Posted by Ethan Jewett <es...@gmail.com>.
Hi Dick and Chatree,

Sorry for the radio silence. It has been a crazy week. These methods
are now documented on the API2 wiki page at
http://cwiki.apache.org/confluence/display/ESME/API+2.0+-+Design

(and by the way, the method is POST /api2/users ;-)

In order to use this method the user calling the API *must* be defined
with the "intergration-admin" role in a property file (take a look at
the test.default.props file in the /server/resources/props directory
as an example. If you have not done anything to a property file you
are definitely going to get a 403, since a normal user should not be
able to use this method.

Ethan

On Fri, Jan 15, 2010 at 5:30 AM, Richard Hirsch <hi...@gmail.com> wrote:
> This is a new functionality that currently isn't documented well in the wiki
>
> Use the "users/addUser" request method.
>
> I'd look in the api2 tests to get some hints:
> http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/test/scala/org/apache/esme/api/API2Test.scala?view=markup
>
> @Ethan: can you help out and document this more in the wiki?
>
> D.
>
> On Fri, Jan 15, 2010 at 11:17 AM, Chatree Srichart
> <ch...@gmail.com> wrote:
>> Hi all,
>>
>> I don't need to create new user account through web page. How to create user
>> account through API with Java program?
>>
>> Regards,
>>
>

Re: How to create account through API?

Posted by Richard Hirsch <hi...@gmail.com>.
This is a new functionality that currently isn't documented well in the wiki

Use the "users/addUser" request method.

I'd look in the api2 tests to get some hints:
http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/test/scala/org/apache/esme/api/API2Test.scala?view=markup

@Ethan: can you help out and document this more in the wiki?

D.

On Fri, Jan 15, 2010 at 11:17 AM, Chatree Srichart
<ch...@gmail.com> wrote:
> Hi all,
>
> I don't need to create new user account through web page. How to create user
> account through API with Java program?
>
> Regards,
>