Socket
Socket
Sign inDemoInstall

@5app/digital-hub-api

Package Overview
Dependencies
8
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @5app/digital-hub-api

API for interacting with a Digital Hub


Version published
Weekly downloads
8
Maintainers
4
Install size
642 kB
Created
Weekly downloads
 

Readme

Source

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.

FAQs

Last updated on 12 Apr 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc