Skip to content
Alban LEROUX edited this page Oct 3, 2011 · 2 revisions

API

auth.grant.get

Retrieve grant id.

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" : 
	{
		"id" : 1
    }
}
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<xml>
	<status>valid</status>
	<response>
		<id>1</id>
	</response>
</xml>

Arguments

  • grant: the grant name

Return Value

  • id: the grant id

Clone this wiki locally