Skip to main content

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

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

microsoft-dynamics-auth-0.0.2.tar.gz (1.8 kB view hashes)

Uploaded Source

Built Distribution

microsoft_dynamics_auth-0.0.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page