Using the Microsoft Graph API to retrieve Calendar and convert to Orgmode compatible plain text.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Levi Olson de53cd6e8f
Add README.org
3 years ago
.gitignore Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
.python-version Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
LICENSE Add MIT License 3 years ago
README.org Add README.org 3 years ago
config-example.cfg Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
config.py Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
msgraph-orgmode.py Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
oauth2ms.py Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago
requirements.txt Woohoo - a working calendar fetch from M$ graph and conversion to Orgmode! 3 years ago

README.org

README

Installation


git clone https://gitea.l3vi.co/leviolson/msgraph2orgmode

cd msgraph2orgmode/

cp config-example.cfg config.cfg

Then install the python dependencies:

Note: Consider optionally using a Virtual Environment. This ensures the installed packages are kept separate.


python -m venv venv

source venv/bin/activate

Finally, install actual packages:


pip install -r requirements.txt

Usage

After installation, you're ready to get your client_id and client_secret from Azure.

Follow the steps here -> https://github.com/microsoftgraph/python-sample-console-app#application-registration

Then:

  1. Update config.cfg to contain your client_id.

  2. Update .authinfo.gpg to include something like:


machine azure.api login email@example.com^client_secret password YOUR_CLIENT_ID_GOES_HERE_WITHOUT_SURROUNDING_QUOTES

And finally, you can run the tool with:


python msgraph-orgmode.py