GearPlug / microsoftgraph-python

Microsoft Graph API wrapper written in Python
MIT License
96 stars 40 forks source link

Avoid passing the kwargs when fetching subsequent pages #27

Closed Disruption closed 2 years ago

Disruption commented 2 years ago

Description

Passing kwargs caused the second and next requests to fail because of duplicated params.

Solution

Microsoft Graph gives the next page url with all the query params specified originally so we shouldn't keep passing them.

Results

Before the fix: image

After the fix: image