issue with datastreamws (HTTPs)

3 次查看(过去 30 天)
zym
zym 2020-7-6
评论: zym 2020-7-9
Hi,
I am trying to retrieve data from datastream. Once I attempt use my credential for the access (c = datastreamws(username,password)), I receive an error message.
Error using datastreamws
HTTP is an insecure protocol, use HTTPs instead.
Does anyone know if the error has something to do with my computer security or the function itself? How can it be fixed? Thanks a lot!

回答(1 个)

Jemima Pulipati
Jemima Pulipati 2020-7-9
编辑:Jemima Pulipati 2020-7-9
Hello,
Currently, datastreamws does use HTTP in the endpoint. To work around the issue and use the HTTPS protocol through our interface, you can use the following code:
d = datastreamws("","","https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/Token?username=user&password=pword")
d.URL = "https://product.datastream.com/DSWSClient/V1/DSService.svc/rest/GetData"
where ‘user’ and ‘pword’ are your username and password. After connecting with this syntax, you should be able to make historical requests.
  1 个评论
zym
zym 2020-7-9
Thanks for this, I attempted to use it but now i get another error.
Error using datastreamws
User 'blabla' not entitled to ClientApi service..
I guess now the error has something to do with my university's access to datastream and not https

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by