Skip to content

Commit

Permalink
docs: Add links to *SubscriptionRequest elements (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
ecederstrand authored Oct 31, 2023
1 parent 6a8289a commit 71d9871
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions exchangelib/services/subscribe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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):
Expand All @@ -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

Expand Down

0 comments on commit 71d9871

Please sign in to comment.