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 Subscription to SubscriptionCollection is missing the include_resource_data parameter #899

Open
optimygmbh opened this issue Oct 10, 2024 · 0 comments

Comments

@optimygmbh
Copy link
Contributor

optimygmbh commented Oct 10, 2024

I am trying to add a new subscription with the function in this file: master/office365/subscriptions/collection.py

It misses the parameter include_resource_data. The parameter is there in the subscription itself, but missing in the constructor.

Can this be added, or is there another way on how to set this value to true?

`class SubscriptionCollection(EntityCollection[Subscription]):
def init(self, context, resource_path=None):
super(SubscriptionCollection, self).init(
context, Subscription, resource_path
)

def add(
    self,
    change_type,
    notification_url,
    resource_path,
    expiration,
    client_state=None,
    latest_supported_tls_version=None,
    include_resource_data=false,   <------ to be added
):
...
...
payload = {
        "changeType": change_type,
        "notificationUrl": notification_url,
        "resource": str(resource_path),
        "expirationDateTime": expiration.isoformat() + "Z",
        "clientState": client_state,
        "latestSupportedTlsVersion": latest_supported_tls_version,
        "includeResourceData": include_resource_data,  <------ to be added
    }

`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants