Skip to content

Files

Latest commit

f8522dd · Jul 12, 2021

History

History

quick-start-nodejs

Quick Start: Node.js

This sample shows how to make a call from a simple Node.js script using the Axios node module.

What it does

This sample makes a GET request to /libraries/ as soon as you run it. It will then print the response data in your terminal.

Setup

1. Add environment variables

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.

2. Run the sample

In your terminal, start the sample:

npm install
npm start