Browse Source

Add README.org

master
Levi Olson 3 years ago
parent
commit
de53cd6e8f
No known key found for this signature in database GPG Key ID: 50264B9D44B55DC5
1 changed files with 55 additions and 0 deletions
  1. +55
    -0
      README.org

+ 55
- 0
README.org View File

@ -0,0 +1,55 @@
#+title: README
* Installation
#+begin_src shell
git clone https://gitea.l3vi.co/leviolson/msgraph2orgmode
cd msgraph2orgmode/
cp config-example.cfg config.cfg
#+end_src
Then install the python dependencies:
Note: Consider optionally using a =Virtual Environment=. This ensures the installed packages are kept separate.
#+begin_src shell
python -m venv venv
source venv/bin/activate
#+end_src
Finally, install actual packages:
#+begin_src shell
pip install -r requirements.txt
#+end_src
* 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=.
1. Update =.authinfo.gpg= to include something like:
#+begin_src authinfo
machine azure.api login email@example.com^client_secret password YOUR_CLIENT_ID_GOES_HERE_WITHOUT_SURROUNDING_QUOTES
#+end_src
And finally, you can run the tool with:
#+begin_src shell
python msgraph-orgmode.py
#+end_src

Loading…
Cancel
Save