I am trying to export data tables using the API, specifically using the GC tool. The problem I'm having is accessing the data table CSV file after creating the job.
I can access this file simply using my browser as I'm already authenticated, but how do I pull the file (e.g., curl or wget)? What authentication token do I need to use?
Simply attempting to pull the file using curl or wget does not work, so I assume it needs an authentication token, I just do not know what to provide. I have tried passing username/password in both plain text and also in base64 using curl.
With most file exports, you need to pass the download ID at the end of the downloadURI ("xxxx73317bf9ec0a" in your case) to the endpoint GET /api/v2/downloads/{downloadId} to get the url that will work on a simple curl request.
After trying it myself, it didn't work as expected, so you might want to ask the Architect team or possibly the team in charge of the downloads service. If you find the solution, please to post it here for future forum users to find should they encounter this obstacle.