Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Consume API Proxy C# SDK

    Posted 06-05-2025 18:06

    Julio29 | 2022-12-07 18:15:01 UTC | #1

    Good day.

    Please, your support in indicating to me how I could consume the genesys cloud APIs, if the only way to exit over the Internet is through a proxy.

    I am grateful for the help. Cheers

    Julio Segil


    tim.smith | 2022-12-07 18:19:35 UTC | #2

    You can configure RestSharp's RestClient via ApiClient.RestClient.


    Eos_Rios | 2022-12-07 18:44:44 UTC | #3

    You can configure RestSharp's RestClient via ApiClient.RestClient.

    For example: Configuration.Default.ApiClient.RestClient.Proxy = new WebProxy("server", 80);


    Julio29 | 2022-12-15 14:29:37 UTC | #4

    Thanks for the support. I tried the lines of code that you indicated. But I got an exception with the following value:

    {"Error calling PostToken: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."}

    Is this due to some configuration in the proxy server that my client should do?

    Thanks for your support again.

    Cheers Julio


    John_Carnell | 2022-12-20 14:59:54 UTC | #5

    Hi Julio,

    The error you are seeing usually indicates that SSL/HTTPS configuration issue in the proxy. The configuration will be at the proxy level. I would review how you setup SSL/TLS certificates in your proxy.

    Thanks, John Carnell Manager, Developer Engagment


    Julio29 | 2023-01-18 01:29:28 UTC | #6

    Thanks Johnny for the response. If the problem was at the proxy level. Regards!


    system | 2023-02-18 01:30:01 UTC | #7

    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: 17551