Skip to content

Instantly share code, notes, and snippets.

View valvesss's full-sized avatar
⛓️
Developing the Future

Vitor Alves valvesss

⛓️
Developing the Future
View GitHub Profile
package tests
import (
"testing"
"io/ioutil"
"log"
"bytes"
"github.com/go-interpreter/wagon/wasm"
"github.com/go-interpreter/wagon/exec"
@valvesss
valvesss / SharePointFileHandler.py
Created March 11, 2021 00:40
Sharepoint File Handler - Upload/Delete/Download
import json, requests
class DriveSession(object):
def __init__(self, driveID, graphURI):
self.graphURI = graphURI + '/me/drives/' + driveID + '/root:/'
def authenticate(self, grantType, clientID, clientSecret, scope,
userName, password, contentType, microsoftURL):
payload = {
"grant_type": grantType,