Ghost 凭据#
¥Ghost credentials
你可以使用以下凭据验证以下节点:
¥You can use these credentials to authenticate the following nodes:
先决条件#
¥Prerequisites
创建 Ghost 账户。
¥Create a Ghost account.
支持的身份验证方法#
¥Supported authentication methods
- 管理员 API 密钥
¥Admin API key
- 内容 API 密钥
¥Content API key
键的生成步骤相同,但授权流程和键格式不同,因此 n8n 会单独存储凭据。内容 API 使用 API 密钥;管理员 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
更多信息请参阅 Ghost 的 管理员 API 文档 文档,了解有关管理 API 服务的更多信息。更多信息请参阅 Ghost 的 内容 API 文档 文档,了解有关内容 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。
¥The URL of your Ghost admin domain. Your admin domain can be different to your main domain and may include a subdirectory. All Ghost(Pro) blogs have a *.ghost.io domain as their admin domain and require https.
- API 密钥:要生成新的 API 密钥,请创建一个新的自定义集成。请参阅 Ghost Admin API 令牌身份验证密钥文档,了解更多详细说明。复制应用 ID 并将其作为客户端 ID 输入到 n8n 凭据中。
¥An API Key: To generate a new API key, create a new Custom Integration. Refer to the Ghost Admin API Token Authentication Key documentation for more detailed instructions. Copy the Admin API Key and use this as the API Key in the Ghost Admin n8n credential.
使用内容 API 密钥#
¥Using Content API key
要配置此凭据,你需要:
¥To configure this credential, you'll need:
- Ghost 管理域的 URL。你的 管理员域 可以与你的主域不同,并且可以包含子目录。所有 Ghost(Pro) 博客的管理域名均为
*.ghost.io,并且需要使用 https。
¥The URL of your Ghost admin domain. Your admin domain can be different to your main domain and may include a subdirectory. All Ghost(Pro) blogs have a *.ghost.io domain as their admin domain and require https.
- API 密钥:要生成新的 API 密钥,请创建一个新的自定义集成。请参阅 Ghost Content API 密钥文档,了解更多详细说明。复制内容 API 密钥并将其用作 Ghost 内容 n8n 凭据中的 API 密钥。
¥An API Key: To generate a new API key, create a new Custom Integration. Refer to the Ghost Content API Key documentation for more detailed instructions. Copy the Content API Key and use this as the API Key in the Ghost Content n8n credential.