简体   繁体   中英

C#: Google Calendar API events for specific user

I'm trying to get calendar events for a specific user using Google's Calendar API.

I have managed to get user ids for the users I need using the Directory API (Admin SDK).

The problem is, that I need to retrieve the primary calendar (maybe just the id) for each user in order to get their events.

"Verified" solution

The primary calendar id is the user's primary email address.

If you are authenticated as that user, you can also use the "primary" keyword to refer to the primary user's calendar.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM