Class shardimage\shardimagephp\models\accesstoken\ImageUrlAccessToken

Inheritanceshardimage\shardimagephp\models\accesstoken\ImageUrlAccessToken » shardimage\shardimagephp\models\accesstoken\AccessToken » shardimage\shardimagephpapi\base\BaseObject

ImageUrlAccessToken class provides AccessToken for image serving

use shardimage\shardimagephp\models\accesstoken\ImageUrlAccessToken;
use shardimage\shardimagephp\models\accesstoken\ImageUrlAccessTokenExtra;
use shardimage\shardimagephp\models\accesstoken\ImageUrlAccessTokenExtraAuthentication;

$token = new ImageUrlAccessToken();
$token->expiry = time() + 3600;
$token->limit = 1000;
$token->extra = new ImageUrlAccessTokenExtra([
     'cloudId' => '<cloudId>',
     'secret' => '<secretString>',
     'authentication' => new ImageUrlAccessTokenExtraAuthentication(['user' => 'username', 'password' => 'password']),
]);
$response = $client->getAccessTokenService()->create($token);

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$createdAt integer Timestamp of creation shardimage\shardimagephp\models\accesstoken\AccessToken
$expiry integer Timestamp expiration of the access token shardimage\shardimagephp\models\accesstoken\AccessToken
$extra mixed Additional extras for the access token shardimage\shardimagephp\models\accesstoken\AccessToken
$id string ID of access token, can be used as accessToken in client configuration shardimage\shardimagephp\models\accesstoken\AccessToken
$limit integer Request limits of the access token shardimage\shardimagephp\models\accesstoken\AccessToken

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates the object, populates the properties and calls the "init" method. shardimage\shardimagephp\models\accesstoken\AccessToken
__get() Returns the value of a non-defined property, it there is a getter method. shardimage\shardimagephpapi\base\BaseObject
__isset() Does the non-defined property with a getter exist and is it not NULL? shardimage\shardimagephpapi\base\BaseObject
__set() Sets the value of a non-defined property, if there is a setter method. shardimage\shardimagephpapi\base\BaseObject
__unset() Sets the value of a non-defined property to NULL, if there is a setter. shardimage\shardimagephpapi\base\BaseObject
getType() Getting the type of access token shardimage\shardimagephp\models\accesstoken\ImageUrlAccessToken
toArray() Converts the object an array. shardimage\shardimagephpapi\base\BaseObject

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
ensureClass() Creates an object from the given parameters. shardimage\shardimagephpapi\base\BaseObject
init() Custom initialization. shardimage\shardimagephp\models\accesstoken\ImageUrlAccessToken

Method Details

getType() public method

Getting the type of access token

public void getType ( )
init() protected method

Custom initialization.

protected void init ( )