https://github.com/clevertap/clevertap-csv-upload
CleverTap csv upload tools
https://github.com/clevertap/clevertap-csv-upload
Last synced: over 1 year ago
JSON representation
CleverTap csv upload tools
- Host: GitHub
- URL: https://github.com/clevertap/clevertap-csv-upload
- Owner: CleverTap
- Created: 2016-11-02T17:24:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-09-11T03:23:28.000Z (almost 9 years ago)
- Last Synced: 2025-03-22T21:25:26.620Z (over 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 1
- Watchers: 5
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CleverTap python csv upload tool
### Usage
to upload user profile or events from a csv:
- git clone the repo
- run csvupload.py passing your CleverTap Account ID and Passcode and the absolute path to your csv file.
- Add -d true to do a dry run.
- Add -t to specify type of data: event or profile (defaults to profile)
- e.g. ./csvupload.py -a WWW-YYY-ZZZZ -c AAA-BBB-CCCC -p ~/Desktop/profileSample.csv
```
arguments:
-h, --help show this help message and exit
-a ID, --id ID CleverTap Account ID
-c PASSCODE, --passcode PASSCODE CleverTap Account Passcode
-r REGION, --region REGION Dedicated CleverTap Account Region, optional
-p PATH, --path PATH Absolute path to the csv file
-m MAPPINGPATH, --mappingpath MAPPINGPATH Absolute path to a custom key json mapping
-t TYPE, --type TYPE The type of data, either profile or event, defaults to profile
-d DRYRUN, --dryrun DRYRUN Do a dry run, process records but do not upload
```
NOTE: you must include one of identity, objectID, FBID or GPID, in your data. Email addresses can serve as an identity value, but the key must be identity.