= ISTAT()
istat = "dataflow/IT1"
path = istat._request(path=path)
test_response test_response
<Response [200]>
get_custom_ssl_session ()
Get a session with a custom ssl context
CustomHttpAdapter (ssl_context=None, **kwargs)
Transport adapter” that allows us to use custom ssl_context.
ISTAT ()
Base class that provides useful functions to communicate with ISTAT API
ISTAT._request (path, **kwargs)
Make a request to ISTAT API given a ‘path’
The ‘ISTAT’ class already implements the ‘base_url’, therefore ‘path’ only needs to include the other parameters of the request. Here is an example of a succesful request: