Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for microsoft-dynamics-auth, version 0.0.4
Filename, size File type Python version Upload date Hashes
Filename, size microsoft-dynamics-auth-0.0.4.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page