A Python wrapper package for ShipthisAPI for making api calls using python.
- Demo setup with
demo.py
- Simple Step API calls.
Install the latest shipthisapi-python
if you haven't installed it yet.
pip install shipthisapi-python
Generate a API Key For your Organisation
from ShipthisAPI.shipthisapi import ShipthisAPI
x_api_key = '<your_api_key>'
organisation = 'demo'
region_id='<your_region_id>'
location_id='<your_location_id>'
shipthisapi = ShipthisAPI(organisation=organisation, x_api_key=x_api_key, region_id=region_id, location_id=location_id)
# Get Organisation/User Info
print(shipthisapi.info())
# Get Invoice Collection List
print(shipthisapi.get_list(collection_name='invoice'))
# Get all Sea list
print(shipthisapi.get_list(collection_name="sea_shipment", params={"count": 2}))
For more details related to available fields and operations check our developer portal
Available Operations
- Get Organisation / User Information
- Create New Collection Entry
- Update Collection
- Get Collection Items
- Delete an existing collection item
If you have any queries related to usage of the api please raise a issue here