NealWalters
NealWalters

Reputation: 18227

Can I use Google Calendar API v3 to access someone else's public calendar without auth?

If someone has shared their Google calendar (for example, with a widget that displays it on a web page), then I can get the calendarID, e.g: [email protected]

I want to write an Alexa App (in NodeJS) to provide information from that calendar. (I'm using this sample as a model: https://developers.google.com/google-apps/calendar/quickstart/nodejs).

I have two questions:

1) Can I access it in the Google API without asking the owner of the calendar to perform some steps

2) Since the calendar is public, do I have to be authenticated in the API to access it? The above example assumes you need to authenticate.

Upvotes: 3

Views: 3374

Answers (1)

Tanaike
Tanaike

Reputation: 201553

Q1) Can I access it in the Google API without asking the owner of the calendar to perform some steps?

  • A1. Yes. When the owner of the calendar shares calendars, other users can access the calendar using Google Calendar API . At that time, the owner is not required to do something.

Q2) Since the calendar is public, do I have to be authenticated in the API to access it?

  • A2. Yes. When users, who are not owner, know the ID of shared calendar, the users can access to the ID by authorizing for each account. Each user can use by the authorization process used at the Quickstart script.
    • You can test about this using here. When you put the ID of other user's calendar, if the calendar is shared, you can access to it.

If I misunderstand your question, I'm sorry.

Upvotes: 2

Related Questions