Metadata-Version: 2.4
Name: httpie-oauth
Version: 1.0.2
Summary: OAuth plugin for HTTPie.
Home-page: https://github.com/jkbr/httpie-oauth
Download-URL: https://github.com/jkbr/httpie-oauth
Author: Jakub Roztocil
Author-email: jakub@roztocil.name
License: BSD
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Environment :: Plugins
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Utilities
Requires-Dist: httpie>=0.7.0
Requires-Dist: requests-oauthlib>=0.3.2
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: download-url
Dynamic: home-page
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

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
