You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
I would like to display the ID of an event (event.id) in google calendar (using dialogflow fulfillment). So I inserted a showEvent () function but this doesn't work. Could someone tell me where is the mistake? I need the ID because I would like to be able to delete an event later.
I would like to display the ID of an event (event.id) in google calendar (using dialogflow fulfillment). So I inserted a showEvent () function but this doesn't work. Could someone tell me where is the mistake? I need the ID because I would like to be able to delete an event later.
/* ************************************************************* */
`function showEvents(agent) {
return new Promise ((resolve, reject) => {calendar.events.list({
'auth': serviceAccountAuth,
'calendarId': calendarId,
'timeMin': (new Date()).toISOString(),
'showDeleted': false,
'singleEvents': true,
'maxResults': 10,
'orderBy': 'startTime'
}).then(function(response) {
var events = response.result.items;
console.log('events:', events);
agent.add('Appointment List:');
});
});
}`
The text was updated successfully, but these errors were encountered: