Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.59 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.59 KB

NOWPayments-Python-API

CodeQL codecov Black Code style: black

A Python wrapper for the NOWPayments API.

The api call descriptions are from the official documentation.

Getting Started

Before using the NOWPayments API, sign up for a API key here.

If you want to use the Sandbox, request your API key here.

To install the wrapper, enter the following into the terminal.

pip install nowpayments

Every api call requires this api key. Make sure to use this key when getting started.

from nowpayments import NOWPayments
payment = NOWPayments("API_KEY")

status = payment.get_api_status()

Sandbox is used in the same way in correspondence with the documentation as follows.

from nowpayments import NOWPaymentsSandbox

payment = NOWPaymentsSandbox("SANDBOX_API_KEY")

status = payment.get_api_status()