🤵Users Handling

Handle the uses in the NextFUR environment.

Methods Allowed:

API ENDPOINT: /v1/users

  • GET /@me

  • GET /get/id/:id

  • GET /get/session/:sessionID

/@ME

SECURITY: TRUE - TYPE: USER SESSION ACTION: Fetches user information for the existing session. RESULT: JSON

-> REQUEST URL

/v1/users/@me

-> REQUEST COOKIE

SessionID=<COOKIE-SESSION-TOKEN>

-> RESULT

{
    "message": "Succefuly Fetched User Data",
    "username": "<STRING>",
    "id": "<STRING>",
    "avatarURL": "<STRING>",
    "bio": "<STRING>",
    "name": "<STRING>",
    "surname": "<STRING>",
    "email": {
        "verified": BOOLEAN,
        "content": "<STRING>"
    },
    "discord": {
        "connected": BOOLEAN,
        "id": "<STRING>",
        "username": "<STRING>"
    },
    "createdAt": "<STRING>"
}

/GET/ID

SECURITY: TRUE - TYPE: USER SESSION ACTION: Fetches user information by the provided ID. RESULT: JSON

-> REQUEST URL

/v1/users/get/id/<USERID>?sessionID=<SESSIONID>

-> RESULT

{
    "message": "Succefuly Fetched User Data",
    "username": "<STRING>",
    "avatarURL": "<STRING>",
    "bio": "<STRING>",
    "discord": {
        "connected": BOOLEAN,
        "id": "<STRING>",
        "username": "<STRING>"
    },
    "createdAt": "<STRING>"
}

/GET/SESSION

SECURITY: TRUE - TYPE: USER SESSION ACTION: Fetches user information by the provided SessionID. RESULT: JSON

-> REQUEST URL

/v1/users/get/session/<SESSIONID>

-> RESULT

{
    "message": "Succefuly Fetched User Data",
    "username": "<STRING>",
    "id": "<STRING>",
    "isLogged": BOOLEAN,
    "avatarURL": "<STRING>",
    "bio": "<STRING>",
    "name": "<STRING>",
    "surname": "<STRING>",
    "email": {
        "verified": BOOLEAN,
        "content": "<STRING>"
    },
    "discord": {
        "connected": BOOLEAN,
        "id": "<STRING>",
        "username": "<STRING>"
    },
    "createdAt": "<STRING>"
}

Last updated