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
Built Distribution
Close
Hashes for microsoft-dynamics-auth-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e5e0277ee4e0fe15908d2f5d9f65ba6ab69e08518965d9a11c1456fc229569 |
|
MD5 | 68322869f0c9fe9a470b33f64edaaa0e |
|
BLAKE2b-256 | 5b1094c33afae03667cb9b70bb7b31e9a74833028becd374a27a33ca2aa476c1 |
Close
Hashes for microsoft_dynamics_auth-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52f223a1c00c8162da6ba58e8c10c766665bfe078d61b5856cdc19e1df39c608 |
|
MD5 | 8b2aa0842b5ad14ebb2584e3c4caa265 |
|
BLAKE2b-256 | c5befb1e2fda3a50fb3e478f3236bad2560c205dbcd7f31cd35cbca427529542 |