Hello,
I would like to download the binary of a document via the API to get a blob object.
Is this somehow possible? I cannot find the corresponding information using the API-explorer.
I know, that I can retrieve the field downloadURL, but using this requires to be logged in to Workfront.
Thanks in advance.
Regards
Lars
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
That's what you have to do. You have to get the download url, and then download it with that url, and both of those require an API key or a session ID.
Views
Replies
Total Likes
That's what you have to do. You have to get the download url, and then download it with that url, and both of those require an API key or a session ID.
Views
Replies
Total Likes
How can I get the file extension in the endpoint - /attask/api/v17.0/document/search?projectID=xxxxxxxxx&fields=folders,downloadURL . I tried adding fileType, but I'm getting below message.
Views
Replies
Total Likes
The file Type parameter is on the version object, so if you include currentVersion:ext, that should give it to you.
Thanks a ton!
Views
Replies
Total Likes
Hey Chris,
This information has be quite useful, however curious how to navigate the Download URL call returning the HTML webpage vs. downloading the binary. The API Key authenticates, but does returns the HTML page. Any thoughts?
Views
Replies
Total Likes
I am also having a problem downloading a document. I am providing an apiKey (I've tried in both $body and $header) in a CURL command through Powershell.
The $url variable contains something like this:
https://<mycompany>.my.workfront.com/internal/document/download?ID=abc123456def123456
$downloadResponse = Curl -Uri $url -Header $header -Body $body -OutFile $downloadPath
All I am getting back is a 4k file, starting with this:
Views
Replies
Total Likes
Having the exact same error. If i open the provided URL in my browser it downloads just fine; but trying to do it programmatically produces an error.
Were you able to solve the issue?
Views
Likes
Replies