-
Notifications
You must be signed in to change notification settings - Fork 0
api auth entity add
Alban LEROUX edited this page Mar 10, 2012
·
1 revision
Add a new entity.
require admin
on self
grant access
NOTE:
self
grant is not a real grant, it means that a authenticated user can act on its data.
Create a unique connection to the API for Jhon's Lightroom plugin.
By default a entity have no grants. Jhon can control finely what can do the
lightroom plugin by adding the grants he wants.
GET http://example.com/api/get/auth.entity.add/json/?name=Lightroom+plugin&password=jhon
{
"method" : "auth.entity.add",
"request" :
{
"name" : "Lightroom plugin",
"user" : "jhon"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<method>auth.entity.add</method>
<request>
<name>Lightroom plugin</name>
<user>jhon</user>
</refresh>
</xml>
{
"status" : "valid",
"response" :
{
"entity" : "fa10c4d7b02a13e27a2ae5a5bbe8130b"
}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
<status>valid</status>
<response>
<entity>fa10c4d7b02a13e27a2ae5a5bbe8130b</entity>
</response>
</xml>
- name: the entity name
- user: the user identifier
- entity: the entity 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