Sending data to Google Sheets with vanilla Javascript
A simple guide to sending your data to Google Sheets using vanilla Javascript
Last updated
const data = {
Email: 'steve.ballmer@microsoft.com',
Name: 'Steve B.',
Created: 'x-sheetmonkey-current-date-time'
};const data = {
Email: 'steve.ballmer@microsoft.com',
Name: 'Steve B.',
Created: 'x-sheetmonkey-current-date-time'
};
fetch('https://api.sheetmonkey.io/forms/vB1pUYCBvUqnSarEvAgsd6', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(data),
}).then((result) => {
// Handle the result
});