Package Exports
- contentful
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (contentful) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
contentful.js
Install
npm install contentfulUsage
var contentful = require('contentful');
var client = contentful.createClient({
// ID of Space
space: '...',
// A valid access token within the Space
accessToken: '...',
// Enable or disable SSL. Enabled by default.
secure: true
});
// Get Space
client.space().then(console.log, console.log);
// Get all Entries
client.entries().then(console.log, console.log);For now, please check out the Content Delivey API's documentation to learn how the API and the JavaScript client work.