Using the below code:
import DatastreamDSWS as DSWS
ds = DSWS.Datastream(username = 'XXXX', password = "XXXX")
I get the following error: Token Request : Unexpected error
I am still able to connect to Datastream using the PyDSWS package:
ds = PyDSWS.Datastream(username='XXXX', password='XXXX')
So I don't believe it's a permissioning issue.
Our firm recently had product.datastream.com whitelisted so that we can access the service, but I believe this requires a proxy setting for requests package in python. In the old (PyDSWS) package this required adding a proxy setting to the requests.get call
ie
proxy = {'http': 'http://proxy.xxx.com'}
requests.get(url, proxies = proxy)
Any idea how to add this setting in the new DatastreamDSWS package?