function checkIntoEvent(eventCode, firstName, lastName, email) {
  // auth (google.auth.OAuth2): The authenticated Google OAuth client
  sheets.api(function(auth) {
    const sheets = google.sheets({version: 'v4', auth});

    sheets.spreadsheets.batchUpdate({
      spreadsheetId: '16baCd9Qd9Q1kJSUGqGzhCuoMFKRxNwO6EJ2lertzDJo',
      resource: createInputRequestObject(eventCode, firstName, lastName, email)
    }, (err, response) => {
      if (err) {
        console.error('Error: ' + err.message);
      } else {
        console.log('Google Sheets update response: ' + response.statusText);
      }
    });

  });
}
/**
 * Google Sheets function to add an event check-in.
 * Must be fed into the Google Sheets API.
 * @see https://docs.google.com/spreadsheets/d/16baCd9Qd9Q1kJSUGqGzhCuoMFKRxNwO6EJ2lertzDJo/edit
 */
Google Sheets function to add an event check-in.
Must be fed into the Google Sheets API.
Google Sheets function to add an event check - in . Must be fed into the Google Sheets API .
function checkIntoEvent(eventCode, firstName, lastName, email) {
  sheets.api(function(auth) {
    const sheets = google.sheets({version: 'v4', auth});
    sheets.spreadsheets.batchUpdate({
      spreadsheetId: '16baCd9Qd9Q1kJSUGqGzhCuoMFKRxNwO6EJ2lertzDJo',
      resource: createInputRequestObject(eventCode, firstName, lastName, email)
    }, (err, response) => {
      if (err) {
        console.error('Error: ' + err.message);
      } else {
        console.log('Google Sheets update response: ' + response.statusText);
      }
    });
  });
}
function checkIntoEvent ( eventCode , firstName , lastName , email ) { sheets . api ( function ( auth ) { const sheets = google . sheets ( { version : 'v4' , auth } ) ; sheets . spreadsheets . batchUpdate ( { spreadsheetId : '16baCd9Qd9Q1kJSUGqGzhCuoMFKRxNwO6EJ2lertzDJo' , resource : createInputRequestObject ( eventCode , firstName , lastName , email ) } , ( err , response ) => { if ( err ) { console . error ( 'Error: ' + err . message ) ; } else { console . log ( 'Google Sheets update response: ' + response . statusText ) ; } } ) ; } ) ; }
Google Sheets function to add an event check-in.
Google Sheets function to add an event check - in .
// auth (google.auth.OAuth2): The authenticated Google OAuth client