JSPM

contentful

0.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1346032
  • Score
    100M100P100Q184129F
  • License MIT

Client for Contentful's Content Delivery API

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 contentful

Usage

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.