This sample shows how to make a call from a simple Node.js script using the Axios node module.
This sample makes a GET
request to /libraries/
as soon as you run it. It will then print the response data in your terminal.
Add a .env
file to the top level of this sample with these keys:
API_KEY=
ACCESS_TOKEN=
See the How To Get Your Developer Credentials tutorial to learn how to get values for these environment variables.
In your terminal, start the sample:
npm install
npm start