Skip to main content

Class: SimbriefClient

Simbrief HTTP client

Constructors

constructor

new SimbriefClient(): SimbriefClient

Returns

SimbriefClient

Methods

getOfp

getOfp(userId): Promise<SimbriefOfp>

Returns the current simbrief ofp

Parameters

NameTypeDescription
userIdnumberthe simbrief userid

Returns

Promise<SimbriefOfp>

a Promise with the simbrief OFP

Defined in

src/sdk/simbrief/SimbriefClient.ts:34


getSimbriefUserIDFromUsername

getSimbriefUserIDFromUsername(username): Promise<number>

Returns a simbrief userid from a username

Parameters

NameTypeDescription
usernamestringthe username

Returns

Promise<number>

the userid

Defined in

src/sdk/simbrief/SimbriefClient.ts:16