Up_Dw.upload_products (eng) - datawizio/pythonAPI GitHub Wiki
Uploads information about products to the server.
Gets a list of objects of the product in the format
[
{
'product_id': <category_id>,
'barcode': <barcode>,
'article': <article>,
'name': <name>,
'category_id': <category_id>,
'unit_id': <unit_id>
}
...
]
or a path to the file *.csv
Parameters:
columns: list
default: [
'product_id',
'barcode',
'article',
'name',
'category_id',
'unit_id',
'length',
'width',
'height',
'review',
'photo'
]
Sorted list of columns in the table in the file *.csv.
splitter: str, default: ";"
Splitter of data in the file *.csv.
skip_chunks: int, default: 0
Number of data blocks that have to be omitted.
Examples:
dwup = datawiz_upload.Up_DW()
dwup.upload_products('/home/user/products.csv', skip_chunks=2)