Ghost 凭据(Ghost credentials)#
你可以使用以下凭据验证以下节点:
🌐 You can use these credentials to authenticate the following nodes:
先决条件(Prerequisites)#
创建一个 Ghost 账户。
🌐 Create a Ghost account.
支持的身份验证方法(Supported authentication methods)#
- 管理员 API 密钥
- 内容 API 密钥
密钥的生成遵循相同的步骤,但授权流程和密钥格式不同,因此 n8n 会将凭据单独存储。Content API 使用 API 密钥;Admin API 使用 API 密钥生成用于认证的令牌。
🌐 The keys are generated following the same steps, but the authorization flows and key format are different, so n8n stores the credentials separately. The Content API uses an API key; the Admin API uses an API key to generate a token for authentication.
相关资源(Related resources)#
有关 Admin API 服务的更多信息,请参阅 Ghost 的 Admin API 文档。有关 Content API 服务的更多信息,请参阅 Ghost 的 Content API 文档。
🌐 Refer to Ghost's Admin API documentation for more information about the Admin API service. Refer to Ghost's Content API documentation for more information about the Content API service.
使用管理员 API 密钥(Using Admin API key)#
要配置此凭据,你需要:
🌐 To configure this credential, you'll need:
- 你的 Ghost 管理域的 URL。你的 管理域 可以与主域不同,并且可能包含子目录。所有 Ghost(Pro) 博客的管理员域都是
*.ghost.io,并且需要使用 https。 - 一个 API 密钥:要生成新的 API 密钥,请创建一个新的自定义集成。有关更详细的说明,请参考 Ghost 管理 API 令牌认证密钥文档。复制 管理 API 密钥 并在 Ghost 管理 n8n 凭证中将其用作 API 密钥。
使用内容 API 密钥(Using Content API key)#
要配置此凭据,你需要:
🌐 To configure this credential, you'll need:
- 你的 Ghost 管理域的 URL。你的 管理域 可以与主域不同,并且可能包含子目录。所有 Ghost(Pro) 博客的管理员域都是
*.ghost.io,并且需要使用 https。 - 一个 API 密钥:要生成新的 API 密钥,请创建一个新的自定义集成。有关更详细的说明,请参阅 Ghost 内容 API 密钥文档。复制 内容 API 密钥,并在 Ghost Content n8n 凭证中将其用作 API 密钥。