Client
class Client
Abstract client for common code for the different clients.
Methods
Client constructor.
Set the application name and version. The values are used as part of the X-Contentful-User-Agent header.
Set the integration name and version. The values are used as part of the X-Contentful-User-Agent header.
No description
No description
No description
The name of the library to be used in the User-Agent header.
The version of the library to be used in the User-Agent header.
Returns the Content-Type (MIME-Type) to be used when communication with the API.
Details
at line 61
__construct(string $token, string $baseUri, string $api, LoggerInterface $logger = null, ClientInterface $guzzle = null)
Client constructor.
at line 80
$this
setApplication(string|null $name, string|null $version = null)
Set the application name and version. The values are used as part of the X-Contentful-User-Agent header.
at line 95
$this
setIntegration(string|null $name, string|null $version = null)
Set the integration name and version. The values are used as part of the X-Contentful-User-Agent header.
at line 113
protected array|null
request(string $method, string $path, array $options = [])
at line 229
protected string[]
getExceptionMap()
at line 242
LoggerInterface
getLogger()
at line 252
abstract protected string
getSdkName()
The name of the library to be used in the User-Agent header.
at line 259
abstract protected string
getSdkVersion()
The version of the library to be used in the User-Agent header.
at line 266
abstract protected string
getApiContentType()
Returns the Content-Type (MIME-Type) to be used when communication with the API.