Consume API Proxy C# SDK

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

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

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

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

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

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

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

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