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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ordway-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3306ecf4dd3c6c49c779e6ebab7d5b177000aef5b16508b4128041bed8c60b01
MD5 e1881dcd6d70f9812293339031f7ab49
BLAKE2b-256 4f3ef3e117e7de83428999bc3edbae349587682a3a0b444d66581a217e139ee3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ordway-0.5.0-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.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ordway-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d89406da426f8fb3012b81300c5ee947ab22c40b8b8ba2889fd1fcb4c2b90696
MD5 25d59340905c67400390bdad52caf79c
BLAKE2b-256 db689dbd7e99f8c49104d836ff699cd67f574397be2504ee5a5f3cf0f9e3ca82

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