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(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.4.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distributions

ordway-0.4.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

ordway-0.4.1-py2.py3-none-any.whl (11.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ordway-0.4.1.tar.gz
  • Upload date:
  • Size: 10.0 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.4.1.tar.gz
Algorithm Hash digest
SHA256 6468ecd92381c100f710abc817c5b249cf027abb74b58eef4401721b333d8c8f
MD5 e3ac736d5a75fa84e6fafafae0cb3872
BLAKE2b-256 16702a451b8c67a89d407fddfdcdec733c7c842717dbe9eb8e00f3a9098b78af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ordway-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.6

File hashes

Hashes for ordway-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de60eec7ec62baf73005a599126b3b510b3bdecb34a5292077dd10388bfd6aa4
MD5 8c927f9d33a42b1afecda20aaaee9504
BLAKE2b-256 15039fd39fe64df0852b9f3934117bbb616284cab2d342418f51aa8e2cc36410

See more details on using hashes here.

File details

Details for the file ordway-0.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: ordway-0.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 2, 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.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 afa48e5cabc55b1e021f6117629e4ad5ae3f9af4d7d287450283e8ae2763c3bc
MD5 1d3c9296afd244d1b7855b81e60a354c
BLAKE2b-256 5555b2f6fd0ddb513a5f4a642b78994c550dd58d3096ada4bcde745c2f106bdd

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