sitesails

Javascript library for the SiteSails API.

Usage no npm install needed!

<script type="module">
  import sitesails from 'https://cdn.skypack.dev/sitesails';
</script>

README

SiteSails JS

Javascript/NodeJS client library for the SiteSails API.

Full documentation is located at https://sitesails.com/docs/

Installation

npm install sitesails-js

or

yarn add sitesails-js

Basic usage

import SiteSailsClient from 'sitesails';

// initialize the client module
export const ss = new SiteSailsClient({
  publicApiKey: 'mypublickey'
});

// fetch a page
const page = await ss.nodes('pages').get('/');

// fetch some blog posts
const articles = await ss.nodes('blog').search({ lang: 'en' });