Skip to content

Instantly share code, notes, and snippets.

@nuriozbey
nuriozbey / sharepointoperations.py
Created September 6, 2022 14:14
MS Sharepoint File Operations
"""
Client Id: *******************************************
Client Secret: ******************************************=
Title: AccessForFileUpload
App Domain: www.nuriozbey.com
Redirect URI: https://nuriozbey.sharepoint.com/
"""
@stefansundin
stefansundin / requests_api.py
Last active April 30, 2025 06:58
Reusable class for Python requests library.
# http://docs.python-requests.org/en/master/api/
import requests
class RequestsApi:
def __init__(self, base_url, **kwargs):
self.base_url = base_url
self.session = requests.Session()
for arg in kwargs:
if isinstance(kwargs[arg], dict):
kwargs[arg] = self.__deep_merge(getattr(self.session, arg), kwargs[arg])