1.1.0 • Published 1 year ago

@5app/digital-hub-api v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
1 year ago

Digital Hub NodeJS API

Greenkeeper badge Known Vulnerabilities Coverage Status CircleCI

A NodeJS API for interoperating with a Digital Hub

Samples

The samples folder highlights how the API can be used to automate and report operations with a Digital Hub.

Core API

Create an instance of the hub

const Hub = require('@5app/digital-hub-api');

constructor

The constructor defines the environment and user credentials

const hub = new Hub({
	tenant,
	username,
	password,
});

api

This makes a request using node-fetch.

await hub.api({
	path: 'query/assets',
	qs: {
		fields: ['id', 'name'],
		filters: {
			parent_id: 13123,
		},
	},
});

Note: Docs on the available HTTP endpoints, methods and parameters are in development.

1.1.0

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.0.3

3 years ago

0.3.1

3 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago