Prettified README file
This commit is contained in:
parent
2abd0b84f8
commit
25d3a80b07
|
@ -13,7 +13,7 @@ pip install python-yubikey
|
||||||
|
|
||||||
## Register for an API key
|
## Register for an API key
|
||||||
|
|
||||||
```
|
``` python
|
||||||
from yubikey import Yubikey
|
from yubikey import Yubikey
|
||||||
|
|
||||||
yubi = Yubikey()
|
yubi = Yubikey()
|
||||||
|
@ -23,8 +23,8 @@ yubi.register('<EMAIL>', '<INSERT OTP HERE>')
|
||||||
|
|
||||||
## Check valid OTP
|
## Check valid OTP
|
||||||
|
|
||||||
```
|
``` python
|
||||||
yubi = Yubikey(<ID>, <Key>)
|
yubi = Yubikey('<ID>', '<Key>')
|
||||||
result = yubi.verify('<INSERT ANOHTER OTP HERE>')
|
result = yubi.verify('<INSERT ANOHTER OTP HERE>')
|
||||||
# True / False
|
# True / False
|
||||||
# If <key> is provided, requests will be signed and the responses checked.
|
# If <key> is provided, requests will be signed and the responses checked.
|
||||||
|
@ -32,7 +32,7 @@ result = yubi.verify('<INSERT ANOHTER OTP HERE>')
|
||||||
|
|
||||||
## Optionals
|
## Optionals
|
||||||
|
|
||||||
```
|
``` python
|
||||||
# Using custom API server
|
# Using custom API server
|
||||||
# Must be one of YubicoWS._servers
|
# Must be one of YubicoWS._servers
|
||||||
yubi = Yubikey(123, 'dGhpc3JlcG9yb2Nrcw==', server='api2.yubico.com')
|
yubi = Yubikey(123, 'dGhpc3JlcG9yb2Nrcw==', server='api2.yubico.com')
|
||||||
|
|
Loading…
Reference in New Issue