Skip to content

Instantly share code, notes, and snippets.

View hadi-muhammad's full-sized avatar

hadi-muhammad

View GitHub Profile
@keathmilligan
keathmilligan / msgraph-upload-session.py
Created March 23, 2020 17:01
Upload a large file using an upload session to a SharePoint site using MS Graph and MSAL
import requests
import msal
import atexit
import os.path
import urllib.parse
import os
TENANT_ID = '<your tenant id>'
CLIENT_ID = '<your application id>'