Legacy Dev Forum Posts

 View Only

Sign Up

Set Environment "apps.usw2.pure.cloud"

  • 1.  Set Environment "apps.usw2.pure.cloud"

    Posted 06-05-2025 18:06

    josmiguelv | 2020-03-09 23:26:19 UTC | #1

    I am connecting to a PureCloud environment other than (http://mypurecloud.com/) (eg [usw2.pure.cloud] I am using the following: PureCloudRegionHosts region = PureCloudRegionHosts.useast2; Configuration.Default.ApiClient.setBasePath( region); but the library haven't the Americas (US West). I've seen other samples: client.setEnvironment('[Environment]'); But it is for javascript and I am working with .Net. Best regards Miguel Velasquez


    anon28885283 | 2020-03-10 02:15:35 UTC | #2

    It should be possible to directly put the string in setBasePath

    Configuration.Default.ApiClient.setBasePath("usw2.pure.cloud");


    tim.smith | 2020-03-10 13:25:19 UTC | #3

    This is a known issue and will be resolved soon.


    josmiguelv | 2020-03-11 13:03:38 UTC | #4

    Hi there, I am setting Configuration.Default.ApiClient.setBasePath("usw2.pure.cloud");

    Configuration.Default.ApiClient.setBasePath("usw2.pure.cloud"); var token = Configuration.Default.ApiClient.PostToken(clientid, secretid); Configuration.Default.AccessToken = token.AccessToken;

    but it produces a wrong :

    excepcion System.UriFormatException: URI no válido: no se puede determinar el formato del URI.

    Best regards


    tim.smith | 2020-03-11 13:20:31 UTC | #5

    Sorry, I didn't catch that in the original reply. The .NET SDK requires the full URL: https://api.usw2.pure.cloud.


    system | 2020-04-11 13:20:36 UTC | #6

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


    This post was migrated from the old Developer Forum.

    ref: 7303