cleaned up the readme a little bit 🍰

pull/1/head
Kenneth Reitz 2017-08-29 02:03:51 -04:00 committed by GitHub
parent 6bc1823fef
commit 14c8ea6645
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