Skip to content

Instantly share code, notes, and snippets.

Avatar
⛓️
Developing the Future

valvesss

⛓️
Developing the Future
View GitHub Profile
@valvesss
valvesss / SharePointFileHandler.py
Created Mar 11, 2021
Sharepoint File Handler - Upload/Delete/Download
View SharePointFileHandler.py
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,
View simple_export
package tests
import (
"testing"
"io/ioutil"
"log"
"bytes"
"github.com/go-interpreter/wagon/wasm"
"github.com/go-interpreter/wagon/exec"