Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Latest commit

 

History

History

README.md

Samples

To run the examples please put your credentials in a .env file in the samples folder root. Please include the following properties.

DH_TENANT='mydigitalhub.5app.com'
DH_USERNAME='andrew@5app.com'
DH_PASSWORD='mysecretpassword'

Then the samples may be executed with these Environment Variables using the node option require -r dotenv/config dotenv

E.g.

node -r dotenv/config report/report.js playlist-popularity

Open the sample directories to see the options for running each one.

Debugging

You can set the ENV VAR to NODE_DEBUG=http to see what is being transmitted in the api.

e.g.

NODE_DEBUG=http node -r dotenv/config report/report.js opens-by-day-of-week