I want to access the public calendar using the Google REST API.
The Google Calendar API offers me to use the OAuth token for accessing calendars:
https://developers.google.com/google-apps/calendar/auth
However, I get access to the public calendar and do it from the server, so I can not / should not / should not ask the user for authentication.
I am using node.js api:
googleapis .discover('calendar', 'v3').execute(function(err, client) { client.calendar.calendars.get({ calendarId: '***@group.calendar.google.com' }) .execute(function (err, response) { console.log('response from google', response); }); });
This returns "Your client issued a wrong or illegal request. That's all we know."
Calling .withApiKey('***') after .calendars.get() returns the same error.
Any suggestions?
Alasdair mclay
source share