Skip to content

Instantly share code, notes, and snippets.

@jtprince
Created April 3, 2020 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jtprince/179e708ffa8ec81fa486ab6d66beed33 to your computer and use it in GitHub Desktop.
Save jtprince/179e708ffa8ec81fa486ab6d66beed33 to your computer and use it in GitHub Desktop.
Simple demonstration of the wms-api-client
from wms_api_client.client import Client
# could also be set as environment variables
config = dict(
WMS_REST_BASE_URL="https://secure-wms.com",
WMS_REST_CLIENT_ID="<...your client id...>",
WMS_REST_SECRET="<...your secret...>"
)
client = Client.from_login(user_login="1", tpl="BITeam", config=config)
for receiver in client.iterate("/inventory/receivers"):
print(receiver)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment