Connect to the smartetailing website order feeds
Project description
Smartetailing Package
This package provides a simple, thin wrapper around the 3 major smartetailing endpoints. It also provides a Pythonic
object representation of the order xml export. v2.00
is the XML version currently required.
Examples
- Basically, just instantiate
SmartetailingConnection()
object and call the public methods.from smartetailing import connection, objects connect_website = connection.SmartetailingConnection(base_url='www.example.com/webservices/xml/feeds.cfc', merchant_id=01234, urlkey='SECRET') orders = list(connect_website.export_orders()) # List[WebOrder] connect_website.confirm_order_receipts([o.id for o in orders]) connect_website.update_order_status(orders[0].id, 'Completed')
- TODO - Doc comments need to be better
Notes
- Currently only supports smart etailing order export v2. Support for v1 could be added if requested.
- Setup instructions from here: https://realpython.com/pypi-publish-python-package/
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
smartetailing-0.4.5.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for smartetailing-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cecb984566cba3235e234049e41e6b08ddee96af09951179c8582bdd6d98fd17 |
|
MD5 | 2a171794c27e2383ca22ca6202c14911 |
|
BLAKE2b-256 | 8b288918d6f8521a45c45b84b17b870a7c17fa1e24e7b0d7627b1bf041ea8863 |