new Users()
Methods
-
all()
-
query all users
Returns:
- Type
- Promise
-
create(user)
-
create user
Parameters:
Name Type Description user
object user infromation
Returns:
- Type
- Promise
-
current()
-
Gets currently authenticated user
Returns:
- Type
- Promise
-
project(projectId)
-
Get the users list of a project.
Parameters:
Name Type Description projectId
number | string The ID or URL-encoded path of the project
Returns:
- Type
- Promise
-
query(userId)
-
query single user info.
Parameters:
Name Type Description userId
number The ID of a user
Returns:
- Type
- Promise
-
remove(userId)
-
Deletes a user. Available only for administrators.
Parameters:
Name Type Description userId
number The ID of a user
Returns:
- Type
- Promise
-
update(userId, user)
-
update single user info
Parameters:
Name Type Description userId
number The ID of a user
user
object user infromation
Returns:
- Type
- Promise