作为一个解决方案,我可以解决这个问题通过使用Python模块的请求,调用这个从MATLAB使用以下:
service_url =“https://webservice.testserver.com/results”;
进口py.requests.get
头= py.dict (pyargs (“授权”api_token));
params = py.tuple ({“格式”,json的});
results_resp =得到(service_url pyargs (“头”头,“参数”params));
json_data = jsondecode (native2unicode (results_resp.content));
最后一行将Python results_resp返回响应。内容为MATLAB结构体,在我的例子中,返回的JSON数据格式进行解析。