JonathanHolvey / sharepy

Simple SharePoint authentication for Python
GNU General Public License v3.0
175 stars 52 forks source link

Support for batch requests? #55

Open burrisca opened 3 years ago

burrisca commented 3 years ago

Is it possible sharepy will add support for batch requests in the future?

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/make-batch-requests-with-the-rest-apis

JonathanHolvey commented 3 years ago

SharePy provides only the authentication for your requests, and will support any REST interface exposed by SharePoint, within the limitations of the underlying Requests library. The implementation of your API calls is up to you, so in theory, you should be able to construct an OData batch request by manually specifying the required headers and body data. This may prove to be a tedious task and unfortunately it is beyond the scope of SharePy and Requests.