fetchDraft

Fetch a draft message.

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

Parameters

ParameterTypeDescription
draftIdStringID of the draft to fetch.
cancelTokenCancelToken (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');