Setting Environment Variables in npm purecloud-platform-client-v2

Dear PureCloud Developers

I am using the node.js package purecloud-platform-client-v2 and wondering where we set the environment variables?

For example, do we edit the npm library and add our clientId, clientSecret and call back Uri as below?

Your assistance will be very much appreciated!

import superagent from 'superagent';

var clientId = "XXXX";
var clientSecret = "XXXX";
var redirectUri = "http://localhost:8080";

/**
 * @module purecloud-platform-client-v2/ApiClient
 * @version 39.0.0

This page should contain the code snippets for authenticating and setting up the environment variables

https://developer.mypurecloud.com/api/rest/client-libraries/javascript/

Hello PrinceMerluza

Thank you very much for pointing me in the right direction.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.