Skip to content
Alban LEROUX edited this page Mar 10, 2012 · 3 revisions

API

auth.user.add

Add a new user.

require admin grant access

Request example

GET http://example.com/api/get/auth.user.add/json/?name=jhon&password=fa10c4d7b02a13e27a2ae5a5bbe8130b&email=jhon%40pixelpost.net
{
	"method"  : "auth.user.add",
	"request" :
	{
		"name"     : "jhon",
		"password" : "fa10c4d7b02a13e27a2ae5a5bbe8130b",
		"email"    : "[email protected]"
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>auth.user.add</method>
	<request>
		<name>jhon</name>
		<password>fa10c4d7b02a13e27a2ae5a5bbe8130b</password>
		<email>[email protected]</email>
	</refresh>
</xml>

Response example

{
	"status"   : "valid",
	"response" :
	{
		"user" : "jhon"
    }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<response>
		<user>jhon</user>
	</response>
</xml>

Arguments

  • name: the user name
  • password: the user password hashed with MD5
  • email: the user email (necessary when password is forgotten)

Return value

  • user: the user identifier
Clone this wiki locally