@5app/digital-hub-api
API for interacting with a Digital Hub
Last updated 5 days ago by 5app-bot .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @5app/digital-hub-api 
SYNC missed versions from official npm registry.

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 request-promise.

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

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

Current Tags

  • 0.3.0                                ...           latest (5 days ago)

4 Versions

  • 0.3.0                                ...           5 days ago
  • 0.2.0                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 16
Last Month 23
Dependencies (3)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |