Skip to main content

A simple Ordway API wrapper.

Project description

Ordway

PyPi Version Supported Versions MIT License

Ordway is a simple API wrapper for Ordway. It's currently in pre-alpha stage, so be wary if you decide to use this in production. Please report any issues you encounter.

Installation

The easiest way to install ordway is via pip.

pip install ordway

Quickstart

from ordway import OrdwayClient

ordway = OrdwayClient(
    email="EMAIL",
    user_token="USER_TOKEN",
    api_key="API_KEY",
    company="COMPANY",
)

for payment in ordway.payments.all():
    print(payment)

for subscription in ordway.subscriptions.list(
    page = 1, 
    filters = { "updated_date>": "2020-01-01" }, 
    sort="updated_date", 
    ascending=False
):
    print(subscription)

print(ordway.customers.get(id="CUST-01"))

ordway.customers.create(data={
    "name": "Jason",
    "description": "Hello",
    "contacts": [{
        "first_name": "Jason"
    }],
    ...
})

Documentation

TODO

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

ordway-0.5.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

ordway-0.5.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file ordway-0.5.1.tar.gz.

File metadata

  • Download URL: ordway-0.5.1.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for ordway-0.5.1.tar.gz
Algorithm Hash digest
SHA256 a5b0782c3693f6553c24a3be27b22b07c057c88e28d476add6857f7b112466ea
MD5 6b99fdd7317760d276d75dba8f860ec6
BLAKE2b-256 36fe796f2002a6d3db307bb0a712b0e684e84eaa3ab2e7eb10b6e2d85efc7f3f

See more details on using hashes here.

File details

Details for the file ordway-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: ordway-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.8.6

File hashes

Hashes for ordway-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7e26f5f21e1be1cc5eb2cb89bb3d30fe015f807f62cd0dc94032079c70f63773
MD5 4fa2e22be6b1c934f153bfe50242cfd0
BLAKE2b-256 e1510323afdde5f0ccc1dfd3b7e980b5ba894a64cafdfcf837236d0e7f1b0c17

See more details on using hashes here.

Supported by

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