Skip to content

Commit

Permalink
Merge pull request #126 from inovex/fix-calendar-v3
Browse files Browse the repository at this point in the history
chore: add EventTypes to google calendar client list
  • Loading branch information
MichaelEischer authored Feb 29, 2024
2 parents 638a17e + d48a380 commit 6787423
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 6787423

Please sign in to comment.