Skip to main content

A simple Ordway API wrapper.

Project description

Ordway

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(json={
    "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.3.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

ordway-0.3.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ordway-0.3.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.2

File hashes

Hashes for ordway-0.3.1.tar.gz
Algorithm Hash digest
SHA256 86e2e07cfd7019cc9b344fd4927af804210182e08494a4321d4967267f8b6677
MD5 a7a0861f034b3c2685939cbc73e5a16f
BLAKE2b-256 87090168aef50ffdf18d9812b86ea9dde148ee7b08874f1e0afc5f7a1738c8d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ordway-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.2

File hashes

Hashes for ordway-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8ae5f928491d2717085da150173bea0f221102fedc9bdb8afcbc9fc5dbea9a8
MD5 451e0f9761d65560d9c685659818f5ae
BLAKE2b-256 5ab639b13951f8451b0f68385d1f92fa158ffac5e8b39716802e30ef70a5b691

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