Client
class Client
Abstract client for common code for the different clients.
Methods
__construct(string $token, string $baseUri, string $api, LoggerInterface $logger = null, ClientInterface $guzzle = null)
Client constructor.
array
request(string $method, string $path, array $options = [])
No description
string
getUserAgentAppName()
The name of the library to be used in the User-Agent header.
string
getUserAgent()
Returns the value of the User-Agent header for any requests made to Contentful
array
decodeJson(string $json)
No description
Details
at line 61
__construct(string $token, string $baseUri, string $api, LoggerInterface $logger = null, ClientInterface $guzzle = null)
Client constructor.
at line 78
protected array
request(string $method, string $path, array $options = [])
at line 187
abstract protected string
getUserAgentAppName()
The name of the library to be used in the User-Agent header.
at line 194
protected string
getUserAgent()
Returns the value of the User-Agent header for any requests made to Contentful