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

Product

All product methods respond with a promise.

Fetch product information.

api.fetchProduct("productdot").then((product) => {
    console.log(product.name); // productdot
});

Create product.

api.createProduct("productdot", "Lorem Ipsum Dolor Sit Amet", "123456", "https://example.com");

Delete product.

api.deleteProduct("productdot")

Update product's configuration.

api.updateProduct("productdot", {
    "name": "productdot",
    "description": "Lorem Ipsum Dolor Sit Amet",
    "developerProductId": "12456",
    "downloadUrl": "https://example.com"
});

Give product to Discord user.

api.giveProduct("productdot", "348853688179359746")

Revoke product from Discord user.

api.revokeProduct("productdot", "348853688179359746")

PreviousHubNextUser

Last updated 3 years ago

Was this helpful?