Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add links to *SubscriptionRequest elements #1245

Merged
merged 1 commit into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: Add links to *SubscriptionRequest elements
ecederstrand committed Oct 31, 2023
commit c1594480a343de688a6b292dd3d534129db3dcbf
3 changes: 3 additions & 0 deletions exchangelib/services/subscribe.py
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@ def _partial_payload(self, folders, event_types):


class SubscribeToPull(Subscribe):
# https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/pullsubscriptionrequest
subscription_request_elem_tag = "m:PullSubscriptionRequest"
prefer_affinity = True

@@ -76,6 +77,7 @@ def get_payload(self, folders, event_types, watermark, timeout):


class SubscribeToPush(Subscribe):
# https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/pushsubscriptionrequest
subscription_request_elem_tag = "m:PushSubscriptionRequest"

def call(self, folders, event_types, watermark, status_frequency, url):
@@ -100,6 +102,7 @@ def get_payload(self, folders, event_types, watermark, status_frequency, url):


class SubscribeToStreaming(Subscribe):
# https://learn.microsoft.com/en-us/exchange/client-developer/web-service-reference/streamingsubscriptionrequest
subscription_request_elem_tag = "m:StreamingSubscriptionRequest"
prefer_affinity = True