[英]How do I get a file from the Blobster API into a Foundry Transform?
I'm using the Blobster API to get files from within a (eg) Python transform in Foundry Code Repositories or Foundry Code Workbooks.我正在使用 Blobster API 从 Foundry Code Repositories 或 Foundry Code Workbooks 中的(例如)Python 转换中获取文件。
What's the best way to accomplish this?实现这一目标的最佳方法是什么?
Use /blobster/api/salt/*rid***/token**
使用
/blobster/api/salt/*rid***/token**
If you use the endpoint sans /token
with a classic {... 'Authorization': auth_token header}
your request will return a redirect (307)
response to the multipass login page.如果您将端点 sans
/token
与经典的{... 'Authorization': auth_token header}
您的请求将返回重定向(307)
响应到多通道登录页面。 The response data will in fact be the html for the login page (probably not what you're after, nope, me neither).响应数据实际上将是登录页面的 html(可能不是你想要的,不,我也不是)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.