Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

cpcontrib/accessapi-clients-nodejs

Repository files navigation

crownpeak-accessapi for NodeJS

npm

CrownPeak AccessAPI interface for NodeJS

Easy to install via npm:

npm install crownpeak-accessapi

Includes command line interface when installed

$ npm install -g crownpeak-accessapi #installed globally
$ crownpeak init       # first step, initialize an accessapi-config.json file, includes API key and credentials for a user
$ crownpeak list "/"  # list contents of root folder
$ echo -n Welcome | crownpeak update /Test --field=body  # opens asset "/Test" and updates the body field to "Welcome"
$ crownpeak route "/Test" Live  # routes asset named 'Test' in the root folder '/' to Live workflow status

Current set of commands on the CLI:

  • init
  • list
  • update
  • route
  • branch

Current set of commands available in NodeJS via require('crownpeak-accessapi')

  • AuthenticateAuth
  • AssetExists
  • AssetPaged
  • AssetRoute
  • AssetBranch

See wiki for more information

About

CrownPeak AccessAPI interface for NodeJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published