Export transactions data for each user number for given time interval
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests Added rate limit error handling Jul 4, 2018
.editorconfig Initial commit May 17, 2018
.env-sample Tested generating of csv May 17, 2018
.gitignore Initial commit May 17, 2018
.travis.yml Added travis file May 17, 2018
Dockerfile Added Dockerfile May 17, 2018
README.md Fixed Vulnerabilities badge May 18, 2018
index.js Added rate limit error handling Jul 4, 2018
package.json Added missing tests May 18, 2018
yarn.lock Added missing tests May 18, 2018

README.md

node-per-number-transactions

Export transactions data for each user number for given time interval

Build Status

Dependencies

Known Vulnerabilities

Usage

Via docker

# Generate reports for last month (replace /path/for/reports with your existing path for generated csv files)

docker run -i -t --rm -e BANDWIDTH_USER_ID=<your-user-id> -e BANDWIDTH_API_TOKEN=<your-api-token> -e BANDWIDTH_API_SECRET=<your-api-secret> -v /path/for/reports:/out bandwidthexamples/node-per-number-transactions

# Or with using .env file
docker run -i -t --rm  --env-file=./.env -v /path/for/reports:/out bandwidthexamples/node-per-number-transactions

# Using custom time interval

docker run -i -t --rm  --env-file=./.env -v d:/tmp:/out bandwidthexamples/node-per-number-transactions --fromDate 2018-01-01T00:00:00 --toDate 2018-05-01T00:00:00

Directly

Install node and yarn first.

# Prepare
git clone https://github.com/BandwidthExamples/node-per-number-transactions.git
cd node-per-number-transactions
yarn

# Rename .env-sample to .env and fill it with right values or export environment variables BANDWIDTH_USER_ID, BANDWIDTH_API_TOKEN and BANDWIDTH_API_SECRET with right values.

# Using (replace /path/for/reports with your existing path for generated csv files)
yarn start --out /path/for/reports

# Using custom time interval
yarn start --out /path/for/reports --fromDate 2018-01-01T00:00:00 --toDate 2018-05-01T00:00:00