Skip to content

Commit

Permalink
Deliberately request for deleted Google calendars
Browse files Browse the repository at this point in the history
Required so that they can be filtered out as sometimes they are returned without providing the flag too
  • Loading branch information
balysv committed Nov 17, 2021
1 parent 75a9b97 commit a956365
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ private fun Calendar.findCalendarsPage(nextPageToken: String?, syncToken: String
val requestBuilder = this.calendarList().list()
requestBuilder.maxResults = 250
requestBuilder.syncToken = syncToken
requestBuilder.showDeleted = true
requestBuilder.showHidden = false
requestBuilder.fields =
"""
nextPageToken,nextSyncToken,items(id,timeZone,accessRole,primary,selected,summary,summaryOverride,backgroundColor,foregroundColor,deleted)
Expand Down

0 comments on commit a956365

Please sign in to comment.