/helloworks-nodejs-sdk

Easily create and manage HelloWorks workflow instances.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

HelloWorks Node.js SDK

A Node.js SDK for easily creating and managing HelloWorks workflow instances.

Npm version Travis David


Usage

Start by installing the HelloWorks SDK from npm.

npm install helloworks-sdk

In your backend app, require the helloworks-sdk library and instantiate a new client with your API key ID and secret.

const HelloWorks = require('helloworks-sdk');

const client = new HelloWorks({
  apiKeyId,
  apiKeySecret,
});

Use the client to easily make HelloWorks API requests without the overhead of handling responses and managing JWT authorization.

client.workflowInstances.getInstance({
  instanceId,
}).then((instanceObj) => {
  // ...
});

More examples and documentation can be found in the API Documentation Wiki page.

Note: It should go without saying that this library must never be used on the client side of your application. The HelloWorks Node.js SDK relies on sensitive API keys and by using it on the public-facing frontend codebase you will risk dangerously exposing your API key secret, which will make you vulnerable to impersonation attacks.

Resources




© 2019 HelloSign. All rights reserved.