async function runSample() {
  // Obtain user credentials to use for the request
  const auth = await authenticate({
    keyfilePath: path.join(__dirname, '../oauth2.keys.json'),
    scopes: [
      'https://www.googleapis.com/auth/glass.timeline',
      'https://www.googleapis.com/auth/glass.location',
    ],
  });
  google.options({auth});

  const res = await mirror.locations.list({});
  console.log(res.data);
}
// a very simple example of listing locations from the mirror API
a very simple example of listing locations from the mirror API
a very simple example of listing locations from the mirror API
async function runSample() {
  const auth = await authenticate({
    keyfilePath: path.join(__dirname, '../oauth2.keys.json'),
    scopes: [
      'https://www.googleapis.com/auth/glass.timeline',
      'https://www.googleapis.com/auth/glass.location',
    ],
  });
  google.options({auth});
  const res = await mirror.locations.list({});
  console.log(res.data);
}
async function runSample ( ) { const auth = await authenticate ( { keyfilePath : path . join ( __dirname , '../oauth2.keys.json' ) , scopes : [ 'https://www.googleapis.com/auth/glass.timeline' , 'https://www.googleapis.com/auth/glass.location' , ] , } ) ; google . options ( { auth } ) ; const res = await mirror . locations . list ( { } ) ; console . log ( res . data ) ; }
a very simple example of listing locations from the mirror API
a very simple example of listing locations from the mirror API
// Obtain user credentials to use for the request