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

pagopa-archive/io-bulkops

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •