fetchDraft

Fetch a draft message.

function fetchDraft(draftId: string, cancelToken?: CancelToken): Promise<DraftMessage>;

Parameters

Parameter

Type

Description

draftId

String

ID of the draft to fetch.

cancelToken

CancelToken (optional)

Token to cancel the request.

Return value

The function returns a Promise that resolves with the draft message fetched.

Examples

Front.fetchDraft('dra_uid:xxx');