2.1.0 • Published 5 years ago

cmsdriven v2.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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');
2.1.0

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago