Complete reference guide to the Delivery client library
Complete reference guide to the Delivery client library
The first thing that needs to be done is initiating an instance of Contentful\Delivery\Client by giving it three parameters: an access token, a space ID, and an environment ID (which is optional and defaults to master).
The client constructor also takes other optional parameters. This is the complete configuration:
Usage
Assets
Content types
Entries
Environment and locales
Environments in this client library are a virtual resource, which is used as a container for locales: