Add proxy feature to the api sdk

Because our servers are blocking communication with the external network for reasons of corporate security policy, communication is only possible through the proxy server. So I added the proxy feature PR to patreon github.
please review and merge it,


thanks very much.