/MS-Graph

Primary LanguagePython

Microsoft Graph Module

Scrapes Outlook for notifications.

Development Installtion 🔧

  1. Register a MS Graph app

    • Go to the MS Graph Quick Start
    • Select Python step1
    • Select Get an app ID and secret step2
    • Signin using your Cision email
    • Copy the app secret and App ID step3
  2. Setup the Credentials

    • Create a file called oauth_settings.yml, and paste the app secret and App ID that you got from the previous step
    • Save the oauth_settings.yml file to the parent directory
app_id: "YOUR APP ID HERE"
app_secret: "YOUR APP SECRET HERE"
redirect: "http://localhost:8000/callback"
scopes:
  - user.read
  - mailboxsettings.read
  - calendars.readwrite
authority: "https://login.microsoftonline.com/common"

Note: do NOT save the yml file to the ./ms_graph_module directory

  1. Install the Required Packages

  2. Run the Server

    • Run python3 manage.py runserver to spin up the server
  3. Initialze the Database

    • Use manage.py to initialize an sqlite database on your machine using the python3 manage.py migrate command