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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ordway-0.3.0.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.0.tar.gz
Algorithm Hash digest
SHA256 610d7b42aee9de3bcac9c6b7e82d2c8508293a1a7b2effdfa60c97912168b88d
MD5 7b0646c13d7f38e555a0dfa4482844c1
BLAKE2b-256 6e5989bd03f8222c686d516d62aad2e19fc88b7294f820ae82f1152375d490d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ordway-0.3.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e341e3d5c4700c166110aef98a1abb75394f1ebde11da0707c3af7b3e9aa840e
MD5 ccb82dc1134d98e1e3589f06d8fbf7ef
BLAKE2b-256 15aa0eb59550fc9288821a4a5a41d6894489eac163368f32465604a1105fe43e

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