Skip to content

simplyrfid-dev/pogi-api-python3-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

PogiAPI - Python3

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

Prerequisites

  1. Python3 and pip3 installed
  2. Python request library installed
  3. Fill out the user_id and user_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):

Important Note

You can check the whole information about the Pogi API here: Pogi API Manual

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages