Levi Olson 8bcee387f8 | 3 years ago | |
---|---|---|
.gitignore | 3 years ago | |
.python-version | 3 years ago | |
LICENSE | 3 years ago | |
README.org | 3 years ago | |
config-example.cfg | 3 years ago | |
config.py | 3 years ago | |
msgraph-orgmode.py | 3 years ago | |
oauth2ms.py | 3 years ago | |
requirements.txt | 3 years ago |
README
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
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:
Update config.cfg
to contain your client_id
as well as the machine
name and login
you choose.
Update .authinfo.gpg
to include something like:
machine azure.api login email@example.com^client_secret password CLIENT_SECRET_GOES_HERE
Given the above authinfo entry, you would set the following in config.cfg
:
#... client_id=CLIENT_ID_GOES_HERE machine=azure.api login=email@example.com #...
And finally, you can run the tool with:
python msgraph-orgmode.py