Prettified README file

This commit is contained in:
Felipe Martín 2016-10-08 16:15:42 +02:00
parent 2abd0b84f8
commit 25d3a80b07
1 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ pip install python-yubikey
## Register for an API key
```
``` python
from yubikey import Yubikey
yubi = Yubikey()
@ -23,8 +23,8 @@ yubi.register('<EMAIL>', '<INSERT OTP HERE>')
## Check valid OTP
```
yubi = Yubikey(<ID>, <Key>)
``` python
yubi = Yubikey('<ID>', '<Key>')
result = yubi.verify('<INSERT ANOHTER OTP HERE>')
# True / False
# If <key> is provided, requests will be signed and the responses checked.
@ -32,7 +32,7 @@ result = yubi.verify('<INSERT ANOHTER OTP HERE>')
## Optionals
```
``` python
# Using custom API server
# Must be one of YubicoWS._servers
yubi = Yubikey(123, 'dGhpc3JlcG9yb2Nrcw==', server='api2.yubico.com')