You can get an access token by doing the following:
- Rename secrets.sample.json to secrets.json
- Go to Graph Explorer.
- Login with the account you want to use to run the node samples.
- Open the F12 dev tools.
- Type tokenPlease() into the console to get an access token.
- Copy the access token and put it into the secrets.json file and save the file.
- Run
npm installto install the application. - Run samples in one of two ways
- Run and debug the node samples found under ./samples/node/main.js by running the Run node samples configuration from the Debug menu in Visual Studio Code.
- Run the node samples from the CLI by entering node ./samples/node/main.js (assuming you are at the root of this repository).