Contentful 凭据(Contentful credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
- 创建一个 Contentful 账户。
- 创建一个 Contentful 空间。
支持的身份验证方法(Supported authentication methods)#
- API 访问令牌
相关资源(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。
- 一个 内容交付 API 访问令牌:如果你希望使用 内容交付 API,则需要提供。如果你不打算使用此 API,请留空。
- 内容预览 API 访问令牌:如果你想使用 内容预览 API,则必填。如果你不打算使用此 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.