Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

Missing Option to Provide Token in Delta Query on SharePoint Files

Open mymro opened this issue 9 months ago • 0 comments

Currently there appears to be no way to add the token query parameter to a sharepoint driveitem delta request.

site.drive.root.delta

my current workaround is to provide a custom query param like so:

query = site.drive.root.delta
query.query_options.custom = {
    "$a=b&token" : "2025-03-10T20%3A00%3A00Z" #a=b to ignore bug in library where all params are prepended with $
}

I have to add "a=b&" to the name of my query param, as the QueryOptions class prepends every query parameter with a $:

def to_url(self):
    """Convert query options to url"""
    return "&".join(["$%s=%s" % (key, value) for (key, value) in self])

Please add the functionality to add this query parameter or point me in the right direction. Maybe I am using the wrong code to build this request.

Thanks in advance.

mymro avatar Mar 17 '25 11:03 mymro