No project description provided
Project description
Poof Python API Wrapper
Installing
pip install poofpy
get your api key
Examples
Set your api key
from poofpy import Poof
client = Poof("your api key here")
Creating crypto invoice
invoice = client.create_crypto_invoice(10,CryptoCurrencies.Bitcoin,Currency.USD)
print(invoice.payment_link)
Creating crypto charge
charge = client.create_crypto_charge(10,CryptoCurrencies.Bitcoin,Currency.USD)
print(charge.address)
Creating fiat invoice
invoice = client.create_fiat_invoice(100,PaymentMethod.Paypal, Currency.USD, "https://www.poof.io", "https://www.poof.io")
print(invoice.payment_link)
Creating fiat charge
charge = client.create_fiat_charge(100,PaymentMethod.Paypal, Currency.USD, "https://www.poof.io", "https://www.poof.io")
print(charge.payment_link)
Getting Balance
obj = client.FetchWalletBalance(CryptoCurrencies.Litecoin)
print(obj.balance)
Payout
client.create_payout(10,CryptoCurrencies.Litecoin,"Lc9oPPPLkUsjDTAH13wAcPRKJyNj9gydwC")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
poofpy-0.4.tar.gz
(4.0 kB
view hashes)