dialogflow-python-client
dialogflow-python-client copied to clipboard
How to disable ssl verification for ai.text_request()
In the python text examples
request = ai.text_request() request.lang = 'de' # optional, default value equal 'en' request.session_id = "<SESSION ID, UNIQUE FOR EACH USER>" request.query = "Hello" response = request.getresponse()
Is there any way to omit ssl verification for the text_request() and getresponse() methods. As, I am using HTTPS, in the server side all the requests require ssl verification.
I need something like the request
requests.get('https://kennethreitz.com', verify=False)
So, text request and response going through api.ai will not check for any ssl certificate.
Wouldn't it be nice to get HTTPS support from this python client....
As like python requests library,
Either there should an option to send certificates as parameters
requests.get( url, cert=cert)
Or, an option to disable ssl verificaiton
requests.get(url, verify=False)