OAuth plugin for HTTPie.
Project description
httpie-oauth
===========
OAuth plugin for `HTTPie <https://github.com/jkbr/httpie>`_.
It currently provides support for OAuth 1.0a 2-legged.
Installation
------------
.. code-block:: bash
$ pip install httpie-auth
You should now see ``oauth1`` under ``--auth-type`` in ``$ http --help`` output.
Usage
-----
.. code-block:: bash
$ http --auth-type=oauth1 --auth='client-key:client-secret' example.org
You can also use `HTTPie sessions <https://github.com/jkbr/httpie#sessions>`_:
.. code-block:: bash
# Create session
$ http --session=logged-in --auth-type=oauth1 --auth='client-key:client-secret' example.org
# Re-use auth
$ http --session=logged-in POST example.org hello=world
===========
OAuth plugin for `HTTPie <https://github.com/jkbr/httpie>`_.
It currently provides support for OAuth 1.0a 2-legged.
Installation
------------
.. code-block:: bash
$ pip install httpie-auth
You should now see ``oauth1`` under ``--auth-type`` in ``$ http --help`` output.
Usage
-----
.. code-block:: bash
$ http --auth-type=oauth1 --auth='client-key:client-secret' example.org
You can also use `HTTPie sessions <https://github.com/jkbr/httpie#sessions>`_:
.. code-block:: bash
# Create session
$ http --session=logged-in --auth-type=oauth1 --auth='client-key:client-secret' example.org
# Re-use auth
$ http --session=logged-in POST example.org hello=world
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpie-oauth-1.0.1.tar.gz
(1.8 kB
view hashes)