@caasy/sdk-js

0.1.10-beta • Public • Published

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.

/@caasy/sdk-js/

    Package Sidebar

    Install

    npm i @caasy/sdk-js

    Weekly Downloads

    4

    Version

    0.1.10-beta

    License

    ISC

    Unpacked Size

    9.46 kB

    Total Files

    3

    Last publish

    Collaborators

    • timoz