How do I get a file from the Blobster API into a Foundry Transform?

Viewed 275

I'm using the Blobster API to get files from within a (e.g.) Python transform in Foundry Code Repositories or Foundry Code Workbooks.

What's the best way to accomplish this?

1 Answers

Use /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. The response data will in fact be the html for the login page (probably not what you're after, nope, me neither).

Related