@caasy/sdk-js
v0.1.10-beta
Published
Official Caasy Javascript SDK.
Downloads
58
Readme
Caasy SDK Javascript
A thin Javascript wrapper for the Caasy API.
Install
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';Configuration
Before you use the SDK, it needs to be initialized with the init method.
caasy.init({ siteId: '<site ID>' });Usage
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();Documentation
Full documentation will be available soon.
