Contentful 凭据#
¥Contentful credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
- 创建 Contentful 账户。
¥Create a Contentful account.
- 创建 Contentful 空间。
¥Create a Contentful space.
支持的身份验证方法#
¥Supported authentication methods
- API 访问令牌
¥API access token
相关资源#
¥Related resources
有关服务的更多信息,请参阅 Contentful API 文档。
¥Refer to Contentful's API documentation for more information about the service.
使用 API 访问令牌#
¥Using API access token
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- 你的 Contentful 空间 ID:空间 ID 会在生成令牌时显示;你还可以引用 Contentful 查找空间 ID 文档 来查看空间 ID。
¥Your Contentful Space ID: The Space ID displays as you generate the tokens; You can also refer to the Contentful Find space ID documentation to view the Space ID.
- 内容分发 API 访问令牌:如果你想使用 内容分发 API,则必需。如果你不打算使用此 API,请留空。
¥A Content Delivery API Access Token: Required if you want to use the Content Delivery API. Leave blank if you don't intend to use this API.
- 内容预览 API 访问令牌:如果你想使用 内容预览 API,则必需。如果你不打算使用此 API,请留空。
¥A Content Preview API Access Token: Required if you want to use the Content Preview API. Leave blank if you don't intend to use this API.
在 Contentful 的“设置”>“API 密钥”中查看和生成访问令牌。Contentful 会为内容分发 API 和内容预览 API 生成令牌,这些令牌包含在同一个密钥中。请参阅 Contentful API 身份验证文档,了解详细说明。
¥View and generate access tokens in Contentful in Settings > API keys. Contentful generates tokens for both Content Delivery API and Content Preview API as part of a single key. Refer to the Contentful API authentication documentation for detailed instructions.