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

API

auth.grant.get

Retrieve grant data.

require admin grant access

Request example

GET http://example.com/api/get/auth.grant.get/json/?grant=read
{
	"method"  : "auth.grant.get",
	"request" :
	{
		"grant" : "read"
	}
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<method>auth.grant.get</method>
	<request>
		<grant>read</grant>
	</refresh>
</xml>

Response example

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

Arguments

  • grant: the grant name

Return Value

  • name: the grant name
Clone this wiki locally