Class shardimage\shardimagephp\auth\Client
Inheritance | shardimage\shardimagephp\auth\Client » shardimage\shardimagephpapi\base\BaseObject |
---|
Client class provides communication with Shardimage API.
$client = new Client([
'apiKey' => '<apiKey>',
'apiSecret' => '<apiSecret>',
'imageSecret' => '<imageSecret>',
'cloudId' => '<cloudId>',
]);
Public Properties
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
init() | Custom initialization. | shardimage\shardimagephp\auth\Client |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
VERSION | '1.0.0' | shardimage\shardimagephp\auth\Client |
Property Details
Shardimage API access token
Shardimage API access token secret
Shardimage API config
Shardimage API host
Shardimage API key
Shardimage API secret
Cache interface
Cache expiration
Default cloud ID
Enable debugging
Shardimage image host
Shardimage Image secret
Logger instance.
Proxy settings (protocol://host:port)
Allow dismissing soft exceptions
Enable gzip compression
Enable using MsgPack
Method Details
Setting up async request
public void async ( $enable ) | ||
$enable | boolean |
Setting up deferred request.
If setting false and there are defered request, it will send together.
public mixed defer ( $enable ) | ||
$enable | boolean |
public array fillParams ( $requiredParams, $params ) | ||
$requiredParams | array | |
$params | array | |
throws | shardimage\shardimagephpapi\base\exceptions\InvalidParamException |
---|
public shardimage\shardimagephp\services\AccessTokenService getAccessTokenService ( ) |
public shardimage\shardimagephp\services\BillingService getBillingService ( ) |
public shardimage\shardimagephp\services\CloudService getCloudService ( ) |
public shardimage\shardimagephp\services\DataService getDataService ( ) |
public shardimage\shardimagephp\services\FirewallService getFirewallService ( ) |
public string getImageHostName ( ) |
public shardimage\shardimagephp\services\ImageService getImageService ( ) |
public shardimage\shardimagephp\services\JobService getJobService ( ) |
public string getLastError ( ) |
public void getParam ( $params, $param ) | ||
$params | array | |
$param | string |
public shardimage\shardimagephp\services\SuperBackupService getSuperBackupService ( ) |
public shardimage\shardimagephp\services\SystemService getSystemService ( ) |
public shardimage\shardimagephp\services\UploadService getUploadService ( ) |
public shardimage\shardimagephp\services\UrlService getUrlService ( ) |
Custom initialization.
protected void init ( ) |
public void send ( $requiredParams, $params, $callback ) | ||
$requiredParams | string[] | |
$params | array | |
$callback | callable |