简体   繁体   English

如何从 Blobster API 获取文件到 Foundry 转换?

[英]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.

相关问题 在 Foundry 代码存储库中,如何从 Python 转换中记录调试消息? - In a Foundry Code Repository, how do I log debug messages from within a Python transform? 在 Palantir Foundry 中,我应该如何在转换中获取当前的 SparkSession? - In Palantir Foundry, how should I get the current SparkSession in a Transform? 如何将数据集转换为 repo 中的字典。 我在铸造厂内使用 pyspark - How do I transform the data set into a dictionary inside the repo. I am using pyspark within foundry 如何从代码存储库中找到 Foundry API? - How can I hit a Foundry API from Code Repositories? 如何设置从 Foundry 到 JDBC 源的写回? - How do I set up a writeback from Foundry to a JDBC source? 如何从我上传到文件夹的转换中访问文件? - How do I access a file from a Transform that I uploaded to a folder? 如何在 Foundry Code Authoring 的 python 转换环境中使用 sqlContext(执行 SQL 查询)? - How can I use sqlContext (to execute SQL queries) in the python transform environment in Foundry Code Authoring? 如何使 Foundry Slate 容器可折叠? - How do I make a Foundry Slate container collapsible? 如何更快地计算我的 Foundry“最新版本”数据集? - How do I compute my Foundry 'latest version' dataset faster? 我如何知道我的 Foundry 工作是否使用增量计算? - How do I know if my Foundry job is using incremental computation?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM