Class shardimage\shardimagephp\services\AccessTokenService
Inheritance | shardimage\shardimagephp\services\AccessTokenService » shardimage\shardimagephp\services\Service » shardimage\shardimagephpapi\base\BaseObject |
---|
Shardimage security service.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$client | shardimage\shardimagephp\auth\Client | Shardimage API Client | shardimage\shardimagephp\services\Service |
$lastError | mixed | Last error in the service | shardimage\shardimagephp\services\Service |
$version | string | Shardimage module version | shardimage\shardimagephp\services\Service |
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
init() | Custom initialization. | shardimage\shardimagephpapi\base\BaseObject |
sendRequest() | Sends the request to the Shardimage API and returns with the Response object or the ID for the request if deferred. | shardimage\shardimagephp\services\Service |
Method Details
Creates a new access token.
public shardimage\shardimagephp\models\accesstoken\AccessToken|shardimage\shardimagephpapi\api\Response create ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\accesstoken\AccessToken | Access Token object |
$optParams | array | Optional API parameters |
throws | shardimage\shardimagephpapi\base\exceptions\InvalidParamException |
---|
Returns whether the access token exists.
public boolean exists ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\accesstoken\AccessToken|string | Access Token object or Access Token ID |
$optParams | array | Optional API parameters |
Shardimage controller
public static void getController ( ) |
Shardimage module
public static void getModule ( ) |
Deletes an access token.
public boolean revoke ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\accesstoken\AccessToken|string | Access Token object or Access Token ID |
$optParams | array | Optional API parameters |
Updates an access token.
public shardimage\shardimagephp\models\accesstoken\AccessToken|shardimage\shardimagephpapi\api\Response update ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\accesstoken\AccessToken | Access Token object |
$optParams | array | Optional API parameters |
throws | shardimage\shardimagephpapi\base\exceptions\InvalidParamException |
---|
Fetches an access token.
public shardimage\shardimagephp\models\accesstoken\AccessToken|shardimage\shardimagephpapi\api\Response view ( $params, $optParams = [] ) | ||
$params | shardimage\shardimagephp\models\accesstoken\AccessToken|string | Access Token object or Access Token ID |
$optParams | array | Optional API parameters |