Skip to content

kient / UserAPI

Class: UserAPI

src/api/user/index.ts:9

Description placeholder

Extends

  • APIBase

Constructors

new UserAPI()

ts
new UserAPI(kient): UserAPI

src/api/api-base.ts:7

Parameters

ParameterType
kientKient

Returns

UserAPI

Inherited from

ts
APIBase.constructor

Properties

PropertyModifierTypeInherited fromDefined in
kientreadonlyKientAPIBase.kientsrc/api/api-base.ts:5

Methods

getAuthorisedUser()

ts
getAuthorisedUser(): Promise<User>

src/api/user/index.ts:31

Returns the currently authorised user's details

Returns

Promise<User>


getById()

ts
getById(id): Promise<User>

src/api/user/index.ts:24

Returns a singular user by ID

Parameters

ParameterTypeDescription
idnumberAccepts a singular user ID that will be queried for

Returns

Promise<User>


getByIds()

ts
getByIds(ids): Promise<User[]>

src/api/user/index.ts:15

Returns an array of users by an array of IDs

Parameters

ParameterTypeDescription
idsnumber[]Accepts an array of user IDs that will be queried for

Returns

Promise<User[]>