The node-apps-toolkit
is a growing collection of helpers and utilities for building Contentful Apps with Node.js.
Requires an Node.js LTS version. Currently supported node versions:
npm install --save @contentful/node-apps-toolkit
# or
yarn add @contentful/node-apps-toolkit
For more details, check out the API documentation.
const { getManagementToken } = require('@contentful/node-apps-toolkit');
const { appInstallationId, spaceId, environmentId, privateKey } = require('./some-constants');
getManagementToken(privateKey, { appInstallationId, spaceId, environmentId })
.then((token) => {
console.log('Here is your app token:', token)
})
For more information, check out the full API documentation.
We're excited to expand this toolkit with new features. If you have any suggestions or requests for features you'd like to see, please create an issue in this repo.
Please see CONTRIBUTING.md for more information on how to contribute to this project.