Skip to content

Commit

Permalink
chore: add EventTypes to google calendar client list
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Huck committed Feb 7, 2024
1 parent 638a17e commit d48a380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/adapter/google/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ func (g *GCalClient) ListEvents(ctx context.Context, starttime time.Time, endtim
listCall := g.Client.Events.List(g.CalendarId).
ShowDeleted(false).
SingleEvents(true).
// see: https://developers.google.com/calendar/api/v3/reference/events/list
EventTypes("default", "focusTime", "outOfOffice").
TimeMin(starttime.Format(time.RFC3339)).
TimeMax(endtime.Format(time.RFC3339)).
MaxResults(defaultPageMaxResults).
Expand Down

0 comments on commit d48a380

Please sign in to comment.