Skip to content

Support configuring HTTP / HTTPS proxy#90

Open
yutayamate wants to merge 2 commits intodomoinc:masterfrom
yutayamate:http_proxy
Open

Support configuring HTTP / HTTPS proxy#90
yutayamate wants to merge 2 commits intodomoinc:masterfrom
yutayamate:http_proxy

Conversation

@yutayamate
Copy link

Hi Domo team,

I found current version of the SDK does not have support for configuring HTTP / HTTP proxy, which is necessary for communicating with the API from enterprise networks where outbound traffic to the Internet is ristricted.

I've tried adding new parameters (proxies and verify) to do this. It would be great if your team could review this PR. Thank you!

from pydomo import Domo

proxies = {'https': 'http://someproxy:8080'}
ssl_verify = False

domo = Domo(client_id='*****', client_secret='*****', proxies=proxies, verify=ssl_verify)

"""

def __init__(self, client_id, client_secret, api_host, use_https, logger, request_timeout):
def __init__(self, client_id, client_secret, api_host, use_https, logger, request_timeout, proxies, verify):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (112 > 79 characters)

self.logger.debug("\n" + DOMO + "\n")

self.transport = DomoAPITransport(client_id, client_secret, api_host, kwargs.get('use_https', True), self.logger, request_timeout = timeout)
self.transport = DomoAPITransport(client_id, client_secret, api_host, kwargs.get('use_https', True), self.logger, request_timeout = timeout, proxies = proxies, verify = verify)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

E501 line too long (184 > 79 characters)
E251 unexpected spaces around keyword / parameter equals

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants