15 lines
787 B
TypeScript
15 lines
787 B
TypeScript
export declare const read: (sheet: string, range: string, credentialsFile?: string) => Promise<any>;
|
|
export declare const download: (sheet: string, dst: string, credentialsFile?: string) => Promise<void>;
|
|
/**
|
|
* Create an OAuth2 client with the given credentials, and then execute the
|
|
* given callback function.
|
|
* @param {Object} credentials The authorization client credentials.
|
|
* @param {function} callback The callback to call with the authorized client.
|
|
*/
|
|
/**
|
|
* Get and store new token after prompting for user authorization, and then
|
|
* execute the given callback with the authorized OAuth2 client.
|
|
* @param {google.auth.OAuth2} oAuth2Client The OAuth2 client to get token for.
|
|
* @param {getEventsCallback} callback The callback for the authorized client.
|
|
*/
|