Created
April 3, 2020 07:12
-
-
Save jtprince/179e708ffa8ec81fa486ab6d66beed33 to your computer and use it in GitHub Desktop.
Simple demonstration of the wms-api-client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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