class Factory (View source)

Factory class with static methods to easily instantiate clients.

Constants

API_BASE_URL

PROXY

GUZZLE_OPTIONS

Methods

static Image
getImageClient(string $organization, string $apiKey, array $options = [])

Return an image client.

static User
getUserClient(array $options = [])

Return a user client.

Details

static Image getImageClient(string $organization, string $apiKey, array $options = [])

Return an image client.

Parameters

string $organization

Organization name

string $apiKey

API key

array $options

Options like api_base_url or proxy

Return Value

Image

static User getUserClient(array $options = [])

Return a user client.

Parameters

array $options

Options like api_base_url or proxy

Return Value

User