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

Uploaded Source

Built Distribution

ordway-0.5.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ordway-0.5.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for ordway-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ac0cae3c82c986d10cfee83811f725a1cb164b8f8f8ecbbb816bd4f429b08cbf
MD5 1a6d1e3acb5034c212b698e08328c42c
BLAKE2b-256 73ea1167770e9f6b2632b6125b118630bee170cd2804578e4c3bb1be5959d3e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ordway-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.11

File hashes

Hashes for ordway-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 156fa5ea04c5865c6d5db922a238287d00d39f75395addee39c318a2e9101bd8
MD5 46434f758cdf0df372a0052928bea3c1
BLAKE2b-256 d2ddf69ff17b43a7577f79fe6a4e861bc9789e1c90d73fa0a5f47d1f6d689886

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