saleor-apps-redis_apl/apps/cms/docs/contentful.md
Dawid a07f337992
Add CMS hub app (#262)
* Add CMS hub app

* Cleanup

* Refactor CMS product variants webhooks

* Test utils 1

* Remove legacy code

* Add .env example

* Update types

* Remove unused code

* Fix cms client opertions settings test

* Fix pnpm-lock file

* Bump typescript to 4.9, support satisfies expressions
2023-03-16 11:17:00 +01:00

1.2 KiB

Contentful

Configuration

Contentful integration requires several configuration tokens. You should enter them in the Apps -> CMS configuration view.

Here is the list of the tokens and instructions on how to obtain them:

  • baseUrl: the API URL. For Contentful, it's https://api.contentful.com.
  • token: the authorization token. For instructions on how to create one for CMS Hub, please go to API keys in the Contentful web app section in the Contentful "Authentication" documentation.
  • environment: id of the Contentful environment you use. To find it, go to Settings -> Environments in the Contentful dashboard.
  • spaceId: id of the Contentful space. To find it, go to Settings -> General settings in the Contentful dashboard.
  • contentId: the id of the content model. To obtain it, go to Content model and to the view of a single product in your Contentful dashboard. Your URL may look something like: "https://app.contentful.com/spaces/xxxx/content_types/product/fields". Then, look to the right side of the screen. You will find a copyable "CONTENT TYPE ID" box there.
  • locale: the localization code for your content. E.g.: en-US.