CoinbaseAPI-1.1
توضیحات
Easy Coinbase API for simple payment acceptance
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | CoinbaseAPI-1.1 |
| نام | CoinbaseAPI |
| نسخه کتابخانه | 1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | billiedark |
| ایمیل نویسنده | hhxx213@gmail.com |
| آدرس صفحه اصلی | https://github.com/billiedark/CoinbaseAPI |
| آدرس اینترنتی | https://pypi.org/project/CoinbaseAPI/ |
| مجوز | - |
[](https://github.com/billiedark)

This library was created to simplify the creation and receipt of payments from the Coinbase api, [provided on the official website](https://docs.cloud.coinbase.com/commerce/docs), in the Python programming language.
## Features
- Checking token validity
- Creating a bill for payment
- Information about the bill
## Installation
[Python](https://www.python.org/) version 3.2 or higher must be installed
```cmd
pip install CoinbaseAPI
```
## Using
To get your Api key, you need to register in Coinbase Commecre and get your key [by following this link](https://beta.commerce.coinbase.com/settings/security)
### Quick example of account creation and payment verification
Every 5 seconds the code will check the payment:
``` python
from CoinbaseAPI import CoinbaseAPI
from time import sleep
api_key = "YOUR_API_KEY"
api = CoinbaseAPI(api_key)
payment = api.create_charge("Test title", "Test description", 5.00, "USD")
print(payment.url)
while True:
if payment.is_paid():
print("Payment is paid!")
break
sleep(5)
```
## License
GNU General Public License (GPL)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl CoinbaseAPI-1.1:
pip install CoinbaseAPI-1.1.whl
نصب پکیج tar.gz CoinbaseAPI-1.1:
pip install CoinbaseAPI-1.1.tar.gz