User

Fetch user

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

Returns a specific hub.

Query Parameters

NameTypeDescription

discordUserId

string

Discord user id to search for

robloxUserId

string

Roblox user id to search for

{
    "_id": "5fe89146544f465bfcbe766d",
    "discordUserId": "348853688179359746",
    "robloxUserId": "79291163",
    "robloxUsername": "MoaufmKlo",
    "products": {
        "5fe88f582a753b6220e423a9": [
            "5fe8930e544f465bfcbe766e"
        ]
    },
    "createdAt": "2020-12-27T13:51:02.572Z",
    "updatedAt": "2020-12-27T13:51:02.572Z"
}

Create user

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

Creates a user.

Request Body

NameTypeDescription

userId

string

Discord user id

{}

Fetch user's products

GET https://api.hubdot.xyz/v1/user/products

Fetches a user's products.

Request Body

NameTypeDescription

guildId

string

hub's Discord guild id

apiToken

string

hub's api token

robloxUserId

string

User's Roblox user id

[
  "product",
  "product 2"
]

Last updated