SDK for contentjet.io
npm install --save contentjet
This library depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.
const contentjet = require('contentjet');
// Create the contentjet client
var client = contentjet.getClient({ projectUUID: '...', apiKey: '...' });
// Fetch entries filtered by entry type
let filters = { entry_type: '97ada977-20c7-472d-b48e-9ccbc712672b' };
client.entry.list(filters).then((data) => {
// Your code
});