Skip to main content

No project description provided

Project description

Poof Python API Wrapper

Installing

pip install poofpy

get your api key

  1. login to poof
  2. create your api key from here

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


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 details)

Uploaded Source

File details

Details for the file poofpy-0.4.tar.gz.

File metadata

  • Download URL: poofpy-0.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for poofpy-0.4.tar.gz
Algorithm Hash digest
SHA256 8c85123d6f02d863558a41847cb28e0e1686bc34a757611c06eb0e7353e8815a
MD5 b37d4b57bdff8e4cf7d4cb97d69cae5e
BLAKE2b-256 fb1db7ed59a1b946e9b8cced9afc94d85a7281ec799a5dadf78da8f8267749b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page