This Python 3 script - pogiApi-cli.py, demonstrates how to login and retrieved data via Pogi API. Connecting to PogiAPI via Python3 interpreter using Python's request library
Here is the list of operations you can do using this app:
op | Description |
---|---|
id-current | Get current inventory data |
id-history | Get inventory data |
id-get | Get item by tag-id |
id-add | Create new item |
id-update | Edit existing item by tag-id |
id-delete | Deiete an item by tag-id |
- Python3 and pip3 installed
- Python request library installed
- Fill out the
user_id
anduser_pwd
variables inside the pogiApi-cli.py file.
To start the app, run this from the command line
% python3 pogiApi-cli.py
Signing in as: [user_id]
Log in (via token-get) succesful. User: [user_id]
==================================================
1. Fetch items (id-current)
2. Fetch item history (id-history)
3. Fetch item details (id-get)
4. Add item (id-add)
5. Update item (id-update)
6. Delete item (id-delete)
0. Exit
Enter op: (0-6):
You can check the whole information about the Pogi API here: Pogi API Manual