Client

Class Client
uses AffiliconApiClient\Traits\Singleton
Methods Summary
public
# init( )
Initializes the Client
public
# setEnv( string $env )
Sets the environment, default 'production'
public
# getEnv( )
Gets the environment
public
# http( )
public
# auth( )
public
# config( )
public
# setClientId( string $id )
Sets the Client ID, previously called Vendor ID
public
# getClientId( )
Gets the Client ID, previously called Vendor ID
public
# getCountryId( )
Gets the specified country code
public
# setCountryId( $countryId )
Sets the country code, eg. "en-US"
public
# getUserLanguage( )
Gets the specified user language
public
# setUserLanguage( string $userLanguage )
Sets the user language, eg. "en"
public
# getToken( )
public
# setSecretKey( $secretKey )
Sets the api secret key
public
# getSecretKey( )
Gets the api secret key
Methods used from AffiliconApiClient\Traits\Singleton trait
getInstance()
Properties Summary
public string $clientId

# NULL
public string $countryId

# NULL
public string $userLanguage

# NULL
protected AffiliconApiClient\Services\AuthService $auth

# NULL
protected AffiliconApiClient\Services\HttpService $http

# NULL
protected AffiliconApiClient\Services\ConfigService $config

# NULL
protected array $options

# NULL
protected $environment

# NULL
Properties used from AffiliconApiClient\Traits\Singleton
$instance