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.2.tar.gz
(1.8 kB
view details)
File details
Details for the file httpie-oauth-1.0.2.tar.gz
.
File metadata
- Download URL: httpie-oauth-1.0.2.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b4fd8c6e85a7f84e27ba7bfc910627e7010465f4dc4999f81f6c43513485503f
|
|
MD5 |
5644a00d4648a0d2b8af7c3fcbe4e36c
|
|
BLAKE2b-256 |
edb5d309cd50e319fa2d746eb8a5d4cb881d9973a0b1095e31e0fac77761cbd3
|