user

Methods

(static) delete(id) → {JSON}

A function to update user data.

Source:
Parameters:
Name Type Description
id String

UUIDv4 which represents user's ID.

Returns:

An object that contains both an error message and a successful about user deletion.

Type
JSON

(static) update(usernameopt, email, passwordopt, nameopt, imageopt) → {JSON}

A function to update user data.

Source:
Parameters:
Name Type Attributes Description
username Integer <optional>

User's username.

email String

User's email.

password String <optional>

User's password.

name String <optional>

User's full name.

image String <optional>

User's image url.

Returns:

An object that contains both an error message and a successful about user.

Type
JSON