diff --git a/README.md b/README.md index c9666bd..75d64e7 100644 --- a/README.md +++ b/README.md @@ -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('', '') ## Check valid OTP -``` -yubi = Yubikey(, ) +``` python +yubi = Yubikey('', '') result = yubi.verify('') # True / False # If is provided, requests will be signed and the responses checked. @@ -32,7 +32,7 @@ result = yubi.verify('') ## Optionals -``` +``` python # Using custom API server # Must be one of YubicoWS._servers yubi = Yubikey(123, 'dGhpc3JlcG9yb2Nrcw==', server='api2.yubico.com')