Base
abstract class Base (View source)
Base Client class.
Constants
DEFAULT_API_BASE_URL |
|
DEFAULT_API_VERSION |
|
API_KEY_HEADER |
|
API_VERSION_HEADER |
|
Properties
protected ClientInterface | $client | Client to access Rokka. |
|
protected string|null | $defaultOrganization | Default organization. |
Methods
__construct(ClientInterface $client, string|null $defaultOrganization)
Constructor.
void
setCredentials(string $key)
Set the credentials.
ResponseInterface
call(string $method, string $path, array $options = [], bool $needsCredentials = true)
Call the API rokka endpoint.
string
getOrganizationName(string|null $organization = null)
Return the organization or the default if empty.
Details
__construct(ClientInterface $client, string|null $defaultOrganization)
Constructor.
void
setCredentials(string $key)
Set the credentials.
protected ResponseInterface
call(string $method, string $path, array $options = [], bool $needsCredentials = true)
Call the API rokka endpoint.
protected string
getOrganizationName(string|null $organization = null)
Return the organization or the default if empty.