async function authenticate() const auth = new google.auth.GoogleAuth( keyFile: CREDENTIALS_PATH, scopes: SCOPES, ); const client = await auth.getClient(); google.options( auth: client ); return google.drive( version: 'v3', auth: client );
Raw file bytes.
const SCOPES = ['https://www.googleapis.com/auth/drive.readonly']; const TOKEN_PATH = 'token.json'; const CREDENTIALS_PATH = 'credentials.json'; google drive api download
async function authenticate() const auth = new google.auth.GoogleAuth( keyFile: CREDENTIALS_PATH, scopes: SCOPES, ); const client = await auth.getClient(); google.options( auth: client ); return google.drive( version: 'v3', auth: client );
Raw file bytes.
const SCOPES = ['https://www.googleapis.com/auth/drive.readonly']; const TOKEN_PATH = 'token.json'; const CREDENTIALS_PATH = 'credentials.json';
| Standard Edition $ 49 | Professional Edition $ 99 | Enterprise Edition $ 399 |