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
  • Fetch product
  • Create product
  • Delete product
  • Update product
  • Give product
  • Revoke product

Was this helpful?

  1. API

Product

Fetch product

GET https://api.hubdot.xyz/v1/product/fetch

Returns a specific product.

Query Parameters

Name
Type
Description

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

name

string

product's name

{
    "_id": "5fd7a9332db5f24c24262f23",
    "hub": "5fd7a219e886f325a0b5c845",
    "name": "productdot",
    "description": "Lorem Ipsum Dolor Sit Amet",
    "developerProductId": "12345",
    "downloadUrl": "https://example.com",
    "createdAt": "2020-12-14T18:04:35.630Z",
    "updatedAt": "2020-12-14T18:04:35.630Z"
}
{}
{}
{}

Create product

POST https://api.hubdot.xyz/v1/product/create

Creates a product.

Request Body

Name
Type
Description

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

name

string

product's name

description

string

product's description

developerProductId

string

product's Roblox developer product id

downloadUrl

string

product's download url

{}
{}
{}
{}
{}

Delete product

POST https://api.hubdot.xyz/v1/product/delete

Deletes a product.

Request Body

Name
Type
Description

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

name

string

product's name

{}
{}
{}
{}

Update product

POST https://api.hubdot.xyz/v1/product/update

Updates a product.

Request Body

Name
Type
Description

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

name

string

product's name

update

object

keys to update

update.name

string

name to update to

update.description

string

description to update to

update.developerProductId

string

developer product id to update to

update.downloadUrl

string

download url to update to

{}
{}
{}
{}

Give product

POST https://api.hubdot.xyz/v1/product/give

Gives a product to a user.

Request Body

Name
Type
Description

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

name

string

product's name

discordUserId

string

Discord user id of the user to give it to

{}
{}
{}
{}

Revoke product

POST https://api.hubdot.xyz/v1/product/revoke

Revoke a product from a user.

Request Body

Name
Type
Description

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

name

string

product's name

discordUserId

string

Discord user id of the user to revoke it from

{}
{}
{}
{}
PreviousHubNextUser

Last updated 4 years ago

Was this helpful?