简体   繁体   中英

Google Calendar API, filter on "busy" status

I am trying to filter the events that are returned from the google API, depending on the "busy" status. From what I have seen, this is not possible. The only workaround that I found, is using the "transparency" key, that seems to be only present if the event is marked as "available".

The above workaround still requires to fetch all events, and then remove the ones from the response, that fail the above check. The /busyFree endpoint, seems to only for for calendars, not specifc events. Am I missing something? Is there indeed no way to only fetch events that are marked as busy/not busy?

Indeed there is currently no way to filter out non busy events other than doing it yourself. If you only care about when the user is busy and not the details of the events, you can use the free busy query instead (that does filter out non busy meetings)

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