API Client
// https://ghost.org/docs/api/v3/javascript/content/
// https://ghost.org/docs/api/v3/javascript/admin/
yarn add @tryghost/content-api
yarn add @tryghost/admin-api
Tools
yarn add @tryghost/helpers
yarn add @tryghost/string
const {tags, readingTime} = require('@tryghost/helpers');
const {slugify} = require('@tryghost/string');
const slug = slugify('你好 👋!'); // slug === "ni-hao"
API
// https://ghost.org/docs/api/v3/content/#endpoints
// https://ghost.org/docs/api/v3/admin/#endpoints
https://demo.ghost.io/ghost/api/v3/content/posts/?key=22444f78447824223cefc48062&include=tags,authors
官方文档中的小疏漏

本文档详细介绍了如何使用 Ghost 的 API 客户端进行内容管理和网站配置。包括了如何安装和使用内容 API 与管理 API,以及提供了一些实用的工具函数,如标签管理和 URL 格式化。此外,还提供了示例代码展示如何调用 API 接口获取文章列表。
673

被折叠的 条评论
为什么被折叠?



