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

Was this helpful?

  1. Node.js module

Hub

All hub methods respond with a promise.

Fetch authenticated hub's information.

api.fetchHub().then((hub) => {
    console.log(hub.name); // hubdot
});

Delete authenticated hub.

api.deleteHub();

Update authenticated hub's configuration.

api.updateHub({
    "name": "hubdot",
    "placeId": "123456",
    "theme": "unuslight",
    "music": [
        12345,
        67890
    ]
});

PreviousIntroductionNextProduct

Last updated 3 years ago

Was this helpful?