Up_DW.upload_loyalty_client_info (eng) - datawizio/pythonAPI GitHub Wiki

Up_DW.upload_loyalty_client_info - uploads data about clients of loyalty programs to the server.

Uploads information about clients of loyalty programs to the server.

Gets a list of objects of the client

        [
            {
                   'loyalty_id': <loyalty_id>,
                   'cardno': <cardno>,
                   'client_name': <client_name>,
                   'client_birthday': <client_birthday>
            }
            ...
        ]

or a path to the file *.csv

Parameters:

  • columns: list,
  •  default: 
                              ['loyalty_id',
                               'cardno',
                               'shop_id',
                               'registration_date',
                               'first_name',
                               'last_name',
                               'sex',
                               'client_birthday',
                               'address',
                               'email'
                               ]
    

    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_loyalty_client_info('/home/user/clients.csv', skip_chunks=2)
    
    ⚠️ **GitHub.com Fallback** ⚠️