Skip to content

Commit

Permalink
Merge branch 'release/0.1.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
natecox committed Jul 25, 2019
2 parents b28dfea + 82171da commit 53a6ec1
Show file tree
Hide file tree
Showing 10 changed files with 240 additions and 133 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
dist
shipstation.egg-info
.tox
.idea
.idea
build/lib/*

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 3.7.3
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: false
language: python
python:
- "2.7.14"
- "3.5.5"
- "3.6.4"
install: pip install tox-travis
script: tox
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Status](https://travis-ci.org/natecox/pyshipstation.svg?branch=develop)](https://travis-ci.org/natecox/pyshipstation)

# Shipstation API Python Bindings
This package provides the basic API bindings for interacting with
[ShipStation](http://www.shipstation.com/) via Python.
Expand Down Expand Up @@ -152,3 +154,33 @@ This corresponds to the Address model in ShipStation
postal_code=['zip code'],
country='[two letter country code]'
)

## Get existing ShipStation Orders
You can get existing orders from ShipStation with parameter filtering.

ss.fetch_orders()

The allowed filter list is:

customer_name,
item_keyword,
create_date_start,
create_date_end,
modify_date_start,
modify_date_end,
order_date_start,
order_date_end,
order_number,
order_status,
payment_date_start,
payment_date_end,
store_id,
sort_by,
sort_dir,
page,
page_size.

Syntax for using a filter:

ss.fetch_orders(parameters_dict={'order_status': 'shipped', 'page': '2'})

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='shipstation',
version='0.1.2',
version='0.1.3',
author='Nathan Cox',
author_email='akujin@akujin.com',
classifiers=[
Expand All @@ -16,6 +16,7 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP'
Expand Down
Loading

0 comments on commit 53a6ec1

Please sign in to comment.