Specifies a basic client that provides service to run command at api server .

This client self can not get credentials. You have put in config parameter access_token.
package Ant\ChateaClient\Service\Client
see
see
see

 Methods

Build new class ChateaGratisClient, this provides commands to run at ApiChateaServer

factory(array $config) : \Ant\ChateaClient\Service\Client\ChateaGratisAppClient | \Guzzle\Service\Client
Static

Parameters

$config

array

Associative array can configure the client. The parameters are: access_token The credentilas of client. This parameter is required base_url The server endpoind url. This parameter is optional Accept The accept header, default value is json. This parameter is optional environment Set mode production [prod] or developing [dev] default value is prod. This parameter is optional scheme Set server schema communication [http|https] for default https. This parameter is optional subdomain Set server subdomain if this exist. For default is api. This parameter is optional

Returns

Update the access token on header.

updateAccessToken(string $access_token) 

Parameters

$access_token

string

The token you put in header