gmail-getter
Version:
A simple tool that gets emails from the Gmail API
10 lines (9 loc) • 370 B
TypeScript
import { Email } from './types';
/**
* Get an email by its id
* @param {string} id Unique ID of the email
* @param {string} token OAuth Access token
* @returns {Promise<Email>} Email contents
* @example const email = await fetchEmailById('123456a123b1c1d1', 'ya01.a123456...')
*/
export declare const fetchEmailById: (id: string, token: string) => Promise<Email>;