kient / UserAPI
Class: UserAPI
Description placeholder
Extends
APIBase
Constructors
new UserAPI()
ts
new UserAPI(kient): UserAPIParameters
| Parameter | Type |
|---|---|
kient | Kient |
Returns
Inherited from
ts
APIBase.constructorProperties
| Property | Modifier | Type | Inherited from | Defined in |
|---|---|---|---|---|
kient | readonly | Kient | APIBase.kient | src/api/api-base.ts:5 |
Methods
getAuthorisedUser()
ts
getAuthorisedUser(): Promise<User>Returns the currently authorised user's details
Returns
Promise<User>
getById()
ts
getById(id): Promise<User>Returns a singular user by ID
Parameters
| Parameter | Type | Description |
|---|---|---|
id | number | Accepts a singular user ID that will be queried for |
Returns
Promise<User>
getByIds()
ts
getByIds(ids): Promise<User[]>Returns an array of users by an array of IDs
Parameters
| Parameter | Type | Description |
|---|---|---|
ids | number[] | Accepts an array of user IDs that will be queried for |
Returns
Promise<User[]>