Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Latest commit

 

History

History
39 lines (28 loc) · 996 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 996 Bytes

IO-BULKOPS

Operatiions

run

yarn install
yarn build
cp .env.example .env

yarn ts-node src/get-profiles work/sample.csv work/sample_skip.csv

yarn ts-node src/send-messages work/sample.csv work/sample_skip.csv

sample .env file

# API_URL for test https://httpbin.org/anything do not send SUBSCRIPTION_KEY to this url!
API_URL="https://api.io.italia.it/api/v1/messages"
# or
# API_URL="https://api.io.italia.it/api/v1/profiles"
SUBSCRIPTION_KEY="XXX"
SLEEP_MS="10"
SLEEP429_MS="5000"
# One of: cashbackIBAN1, cashbackTransaction1, bonusvacanzeStart1, customMessageUser1, cgnStart1
MESSAGE_CONTENT="XXX"

For large files

export NODE_OPTIONS=--max_old_space_size=4096