platformClient.PureCloudRegionHosts['us_east_1'] returns incorrect URL

Following the tutorial from: https://developer.genesys.cloud/analyticsdatamanagement/recording/recordings-bulk-action

const environment = platformClient.PureCloudRegionHosts['us_east_1'] returns mypurecloud.com.

I ended up having to manually add environment = 'api.' + environment for the code to work.

This is with the current NPM version of purecloud-platform-client-v2.

Hello,

The fact that platformClient.PureCloudRegionHosts['us_east_1'] returns mypurecloud.com is expected/normal.
When invoking client.setEnvironment(environment), the SDK sets two path: one for authentication (adding https://login. prefix to environment), one for api (adding https://api. prefix to environment).

I have used the sdk few days ago (version 135 - out of nodejs) and didn't notice such issue.

Regards,

Okay, thank you for the clarification!

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