Skip to content

Documentation / joplin-api / EventApi

Class: EventApi

https://joplinapp.org/api/references/rest_api/#events

Constructors

new EventApi()

new EventApi(ajax): EventApi

Parameters

ajax: Ajax

Returns

EventApi

Defined in

api/EventApi.ts:23

Methods

get()

https://joplinapp.org/api/references/rest_api/#get-events-id

Param

get(id)

get(id): Promise<EventGetRes>

Parameters

id: number

Returns

Promise<EventGetRes>

https://joplinapp.org/api/references/rest_api/#get-events-id

Param
Defined in

api/EventApi.ts:42

get(id, fields)

get<K>(id, fields): Promise<Pick<EventProperties, K> & CommonType>

Type Parameters

K extends keyof EventProperties

Parameters

id: number

fields: K[]

Returns

Promise<Pick<EventProperties, K> & CommonType>

https://joplinapp.org/api/references/rest_api/#get-events-id

Param
Defined in

api/EventApi.ts:43


list()

https://joplinapp.org/api/references/rest_api/#get-events

Param

list(param)

list(param?): Promise<PageRes<EventListRes> & object>

Parameters

param?

param.cursor?: string

Returns

Promise<PageRes<EventListRes> & object>

https://joplinapp.org/api/references/rest_api/#get-events

Param
Defined in

api/EventApi.ts:25

list(param)

list<K>(param): Promise<PageRes<Pick<EventProperties, K>> & object>

Type Parameters

K extends keyof EventProperties

Parameters

param

param.cursor?: string

param.fields: K[]

Returns

Promise<PageRes<Pick<EventProperties, K>> & object>

https://joplinapp.org/api/references/rest_api/#get-events

Param
Defined in

api/EventApi.ts:26

Released under the MIT License.