A thin Javascript wrapper for the Caasy API.
Install the SDK with npm i --save @caasy/sdk-js
and import it with the import
or require
keyword.
const caasy = require('@caasy/sdk-js');
// or
import caasy from '@caasy/sdk-js';
Before you use the SDK, it needs to be initialized with the init
method.
caasy.init({ siteId: '<site ID>' });
Now, you can get started and conveniently request public data such as published blog posts from your Caasy instance.
const allBlogPosts = await caasy.posts.getAll();
Full documentation will be available soon.