-
Notifications
You must be signed in to change notification settings - Fork 0
api auth user add
Alban LEROUX edited this page Mar 10, 2012
·
3 revisions
Add a new user.
require admin
grant access
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>
{
"status" : "valid",
"response" :
{
"user" : "jhon"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<user>jhon</user>
</response>
</xml>
- name: the user name
- password: the user password hashed with MD5
- email: the user email (necessary when password is forgotten)
- user: the user identifier
auth.config.get
auth.config.set
auth.request
auth.token
auth.refresh
auth.destroy
auth.user.add
auth.user.set
auth.user.del
auth.user.get
auth.user.list
auth.entity.add
auth.entity.set
auth.entity.del
auth.entity.get
auth.entity.list
auth.grant.add
auth.grant.set
auth.grant.del
auth.grant.get
auth.grant.list