ClientInterface
interface ClientInterface
Methods
Sends a request to the API, and returns a resource object.
Returns a string representation of the API currently in use.
Details
at line 31
request(string $method, string $uri, array $options = [])
Sends a request to the API, and returns a resource object.
at line 37
useApplication(ApplicationInterface $application)
Sets the current application.
The values are used as part of the X-Contentful-User-Agent header.
at line 45
setApplication(string $name, string $version = '')
deprecated
deprecated
Set the application name and version.
The values are used as part of the X-Contentful-User-Agent header.
at line 51
useIntegration(IntegrationInterface $integration)
Sets the current integration.
The values are used as part of the X-Contentful-User-Agent header.
at line 59
setIntegration(string $name, string $version = '')
deprecated
deprecated
Set the integration name and version.
The values are used as part of the X-Contentful-User-Agent header.
at line 64
getApi()
Returns a string representation of the API currently in use.