From 14c8ea66455841afb267c65557fa1bf99002cd72 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 29 Aug 2017 02:03:51 -0400 Subject: [PATCH] =?UTF-8?q?cleaned=20up=20the=20readme=20a=20little=20bit?= =?UTF-8?q?=20=E2=9C=A8=F0=9F=8D=B0=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8379c50..48f0f9c 100644 --- a/README.rst +++ b/README.rst @@ -10,7 +10,7 @@ Installation ------------ :: - pip install requests-http-signature + $ pip install requests-http-signature Usage ----- @@ -19,9 +19,11 @@ Usage import requests from requests_http_signature import HTTPSignatureAuth + preshared_key_id = 'squirrel' preshared_secret = 'monorail_cat' url = 'http://example.com/path' + requests.get(url, auth=HTTPSignatureAuth(key=preshared_secret, key_id=preshared_key_id)) By default, only the ``Date`` header is signed (as per the RFC) for body-less requests such as GET. The ``Date`` header