hubdot
  • Welcome
  • API
    • Hub
    • Product
    • User
  • Roblox Hub
    • Setup
    • Adding products
    • Testing locations
  • Node.js module
    • Introduction
    • Hub
    • Product
    • User
Powered by GitBook
On this page
  • Installation
  • Authentication

Was this helpful?

  1. Node.js module

Introduction

Installation and authentication

PreviousTesting locationsNextHub

Last updated 3 years ago

Was this helpful?

hubdot has an official Node.js module for interacting with the hubdot API. The module will take care of authentication and requests for you.

Installation

Use the package manager to install hubdot:

npm install hubdot

Authentication

After requiring the module, you need to specify the guild id and api token of your hub which is used by the module to authenticate requests.

const hubdot = require("hubdot");
const api = new hubdot({
    "guildId": "1234567890",
    "apiToken": "abcDeFgHijKlMnOpQrSUvWxYz"
});

npm