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 |
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 |
Last updated