Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@5app/digital-hub-api

Package Overview
Dependencies
Maintainers
4
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@5app/digital-hub-api

API for interacting with a Digital Hub

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
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

Package last updated on 12 Apr 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc