0.2.3 • Published 2 years ago
@znd/client v0.2.3
Official zendo.blog API Client
Install
npm install @znd/client
Usage example
import { createClient } from "@zendoblog/client";
const cms = createClient({
blogId: "MY_BLOG_ID", // Go to your blog settings to get your blog id
});
const posts = await cms.posts.getAll();
const post = await cms.posts.getBySlug("post-slug");