Via the Google API explorer I can access my public calendar events list with the calendar id. So I know that much is right
https://developers.google.com/google-apps/calendar/v3/reference/events/list
The GET example they used looks like this:
GET
https://www.googleapis.com/calendar/v3/calendars/iu8chrc23t5nuejb3q28lt970o%40group.calendar.google.com/events?key={YOUR_API_KEY}
X-JavaScript-User-Agent: Google APIs Explorer
My understanding is that all I need to do is stick my API key into the part that says YOUR_API_KEY
and I should be able to retrieve the correct response by simply putting that url into my browser.
Let's say my API key was ABCDEF1234
then I paste this into the browser and press go:
The response I get unfortunately tells me that something went wrong
{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "keyInvalid",
"message": "Bad Request"
}
],
"code": 400,
"message": "Bad Request"
}
}
At first I thought I hadn't waited long enough for the Key to get activated but it's been more than 24 hours now so I'm not sure why the key would be invalid.
In response to the answer to this question, I'm certain that I'm using the public key.
My only lead on this is that the API key is associated with a google 'project', but my simple GET request is not. My final application is a simple static webpage with a tiny script in it to display upcoming calendar events so the examples given for Java, PHP, Ruby, Python etc don't apply.
Summary: Public Calendar, simple access of upcoming events in API v3 (I was doing this in v2 before).