Update README.md

This commit is contained in:
Jeff Vandrew Jr 2019-03-11 11:06:54 -04:00 committed by GitHub
parent 38708dddb4
commit c3f5cc914e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,26 +22,26 @@ client = BTCPayClient.create_client(host='https://btcpay.example.com', code=<pai
## Uses for the client object you just created above
# Get rates
### Get rates
```python
client.get_rates()
```
# Create specific rate
### Create specific rate
```python
client.get_rate('USD')
```
# Create invoice
### Create invoice
See bitpay api documentation: https://bitpay.com/api#resource-Invoices
```python
client.create_invoice({"price": 20, "currency": "USD"})
```
# Get invoice
### Get invoice
```python
client.get_invoice(<invoice-id>)
```