@caasy/sdk-js

Official Caasy Javascript SDK.

Usage no npm install needed!

<script type="module">
  import caasySdkJs from 'https://cdn.skypack.dev/@caasy/sdk-js';
</script>

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.