ghost API介紹

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

 

官方文檔中的小疏漏

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章