[CON-3243] feat: Add google calendar subscriber connector#2986
Open
Jkarage wants to merge 7 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements Subscribe, UpdateSubscription, DeleteSubscription, and RunScheduledMaintenance for the Google Calendar connector using the Calendar Watch API.
Objects supported:
Live Tests:


Google Calendar push notifications are delivered as HTTP POST requests to the address set in WatchRequest.Address. The body is always empty. All
information arrives in headers:
Header: X-Goog-Resource-State
Values: sync
Meaning: Initial handshake on channel creation — ignore it
Values: exists
Meaning: A resource was created or updated
Values: not_exists
Meaning: A resource was deleted
Header: X-Goog-Channel-ID
Values: e.g. -events
Meaning: The channel ID set during subscribe
Header: X-Goog-Resource-ID
Values: opaque string
Meaning: Stable ID of the watched resource (needed to stop the channel)
Header: X-Goog-Resource-URI
Values: URL
Meaning: The API endpoint of the changed resource
Header: X-Goog-Channel-Token
Values: string
Meaning: The token set in WatchRequest.Token, echoed back verbatim — use this to verify the notification came from Google
Header: X-Goog-Channel-Expiration
Values: RFC 1123 date
Meaning: When the channel expires