import process from "node:process";
import { gsheet_call } from "https://esm.town/v/mattx/gsheet_call?v=1";
export let weddingAPI = (guest, yesno, count, additional, email) => {
const gsheet_append_example = gsheet_call(
process.env.google_service_account,
"1lYEDpX63DL12oGBnZ_rTafZxzRRF3jpkvv_Leu0qeqQ",
"values/A2:D2:append?valueInputOption=RAW",
{ values: [[guest, yesno, count, additional, email]] }
);
return console.email(
`${guest}, ${yesno}, ${count}, ${additional}, ${email}`,
`New RSVP from ${guest}`
);
};