class Factory (View source)

Factory class with static methods to easily instantiate clients.

Methods

static Image
getImageClient(string $organization, string $apiKey, string $apiSecret, string $baseUrl = BaseClient::DEFAULT_API_BASE_URL)

Return an image client.

static User
getUserClient(string $baseUrl = BaseClient::DEFAULT_API_BASE_URL)

Return a user client.

Details

static Image getImageClient(string $organization, string $apiKey, string $apiSecret, string $baseUrl = BaseClient::DEFAULT_API_BASE_URL)

Return an image client.

Parameters

string $organization

Organization name

string $apiKey

API key

string $apiSecret

API secret

string $baseUrl

Optional base url

Return Value

Image

static User getUserClient(string $baseUrl = BaseClient::DEFAULT_API_BASE_URL)

Return a user client.

Parameters

string $baseUrl

Optional base url

Return Value

User