This package has been deprecated

Author message:

This is moved to @cmsdriven/headless npm package

cmsdriven
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Headless CMS

Create content in our platform and fetch it from our SDK

Visit the website: cmsdriven.io

Note: There is an online chat support ready to help you with any question

Install the dependancies

npm i cmsdriven --save

Use our SDK

// Import the cmsdriven sdk
const cmsdriven = require("cmsdriven");

// Create a client for your token
const client = cmsdriven.createClient({
    accessToken: "YOUR_ACCESS_TOKEN_HERE"
});

// Ask for a specific page
this.pageComponents = await client.getPage('/test/page', 'http://dev.mydomain.com');

// Get all the pages by environment
this.pageComponents = await client.getAllPages('prod');

// Get all the pages by environment and specific tag 
this.pageComponents = await client.getPagesByTag('MY_CUSTOM_TAG', 'staging');

Readme

Keywords

none

Package Sidebar

Install

npm i cmsdriven

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

4.61 kB

Total Files

6

Last publish

Collaborators

  • cmsdriven