Microsoft Dynamics 365 authentication plugin for HTTPie.
Project description
microsoft-dynamics-auth
===========
Microsoft Dynamics 365 oauth2 plugin for [HTTPie](https://httpie.org/)
Installation
------------
$ pip install microsoft-dynamics-auth
You should now see `dynamics-auth` under `--auth-type` while running
$ http --help
To be able to execute requests you must export a few shell variables. Copy and rename the sample msft-dynamics.sh.sample to msft-dynamics.sh
and modify the values as required and run the following
$ source msft-dynamics.sh
Usage
-----
$ http --auth-type=msft-dynamics --auth='client-key:client-secret' https://your-org-name.your-crm-region.dynamics.com/api/data/v9.0
Use [HTTPie sessions](https://httpie.org/doc#sessions>)
#### Create session
$ http --session=logged-in --auth-type=msft-dynamics --auth='client-key:client-secret' your-org-name.your-crm-region.dynamics.com
#### Re-use auth
$ http --session=logged-in POST your-org-name.your-crm-region.dynamics.com hello=world
===========
Microsoft Dynamics 365 oauth2 plugin for [HTTPie](https://httpie.org/)
Installation
------------
$ pip install microsoft-dynamics-auth
You should now see `dynamics-auth` under `--auth-type` while running
$ http --help
To be able to execute requests you must export a few shell variables. Copy and rename the sample msft-dynamics.sh.sample to msft-dynamics.sh
and modify the values as required and run the following
$ source msft-dynamics.sh
Usage
-----
$ http --auth-type=msft-dynamics --auth='client-key:client-secret' https://your-org-name.your-crm-region.dynamics.com/api/data/v9.0
Use [HTTPie sessions](https://httpie.org/doc#sessions>)
#### Create session
$ http --session=logged-in --auth-type=msft-dynamics --auth='client-key:client-secret' your-org-name.your-crm-region.dynamics.com
#### Re-use auth
$ http --session=logged-in POST your-org-name.your-crm-region.dynamics.com hello=world
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for microsoft-dynamics-auth-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b1dfad099fc83c6083fa4413ea77437990fae8711573c833f1c8b6a9bd95b09 |
|
MD5 | a218a9d2106977d1354051507d17c53a |
|
BLAKE2b-256 | e68077fc13d9a66f37c90fd8746a45d74e0447b2318d26d0f33810d685cab510 |