Skip to content

Instantly share code, notes, and snippets.

Keath Milligan keathmilligan

View GitHub Profile
@keathmilligan
keathmilligan / msgraph-upload-session.py
Created Mar 23, 2020
Upload a large file using an upload session to a SharePoint site using MS Graph and MSAL
View msgraph-upload-session.py
import requests
import msal
import atexit
import os.path
import urllib.parse
import os
TENANT_ID = '<your tenant id>'
CLIENT_ID = '<your application id>'
@keathmilligan
keathmilligan / msgraph-upload.py
Created Mar 23, 2020
Upload a small file to a SharePoint site using MS Graph and MSAL
View msgraph-upload.py
import requests
import msal
import atexit
import os.path
import urllib.parse
TENANT_ID = '<your tenant id>'
CLIENT_ID = '<your client id>'
SHAREPOINT_HOST_NAME = 'yourcompany.sharepoint.com'
SITE_NAME = '<your site>'
@keathmilligan
keathmilligan / msgraph-download.py
Created Mar 23, 2020
Get info about and download a file from a SharePoint site with Microsoft Graph and MSAL
View msgraph-download.py
import requests
import msal
import atexit
import os.path
import urllib.parse
TENANT_ID = '<your tenant id>'
CLIENT_ID = '<your application id>'
SHAREPOINT_HOST_NAME = 'yourcompany.sharepoint.com'
SITE_NAME = '<your site name>'
@keathmilligan
keathmilligan / msgraph-list-contents.py
Last active Mar 23, 2020
List the contents of a SharePoint folder using Microsoft Graph with MSAL
View msgraph-list-contents.py
import requests
import msal
import atexit
import os.path
import urllib.parse
TENANT_ID = '<your tenant id>'
CLIENT_ID = '<your application id>'
SHAREPOINT_HOST_NAME = 'yourcompany.sharepoint.com'
SITE_NAME = '<your site name>'
@keathmilligan
keathmilligan / notes.md
Created Oct 16, 2016
Lazy-loaded routes with angular-cli
View notes.md

Create the app:

ng new angular-cli-lazyload

cd angular-cli-lazyload

Create a module to be lazy loaded:

ng g module lazy

@keathmilligan
keathmilligan / auth0-angular-cli-notes.md
Last active Mar 20, 2018
auth0 + angular-cli notes
View auth0-angular-cli-notes.md

Auth0 Example with Angular CLI

A complete example is available at https://github.com/keathmilligan/angular2-cli-auth0-example

The provided auth0 tutorial uses SystemJS, these notes outline how to integrate into an angular-cli or straight webpack project.

Create project as usual with "ng create".

Install auth0 packages & bootstrap:

You can’t perform that action at this time.