Merge pull request #1 from kennethreitz/patch-1

cleaned up the readme a little bit 🍰
pull/4/head
Andrey Kislyuk 2017-08-28 23:47:20 -07:00 committed by GitHub
commit 692070feb2
1 changed files with 3 additions and 1 deletions

View File

@ -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