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

Missing Option to Provide Token in Delta Query on SharePoint Files #948

Open
mymro opened this issue Mar 17, 2025 · 0 comments
Open

Missing Option to Provide Token in Delta Query on SharePoint Files #948

mymro opened this issue Mar 17, 2025 · 0 comments
Labels

Comments

@mymro
Copy link

mymro commented Mar 17, 2025

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.

@vgrem vgrem added the question label Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants