async function fetchStartPageToken() {
  // Get credentials and build service
  // TODO (developer) - Use appropriate auth mechanism for your app

  const {GoogleAuth} = require('google-auth-library');
  const {google} = require('googleapis');

  const auth = new GoogleAuth({
    scopes: 'https://www.googleapis.com/auth/drive',
  });
  const service = google.drive({version: 'v2', auth});
  try {
    const res = await service.changes.getStartPageToken();
    console.log('Start token:', res.data.startPageToken);
    return res.data.startPageToken;
  } catch (err) {
    // TODO(developer) - Handle error
    throw err;
  }
}
Retrieve page token for the current state of the account