11 lines
261 B
Python
11 lines
261 B
Python
from sipro.api.client import get_client
|
|
|
|
client = get_client()
|
|
router = '/barcode'
|
|
|
|
|
|
def get_products_by_barcode(barcode: str) -> list[dict]:
|
|
method = f'{router}/getProducts?barcode={barcode}'
|
|
response = client.method('GET', method)
|
|
return response
|