It's my first time working with ActiveCollab API.
I'm trying to get attachments of tasks.
After getting task data 'v1/projects/'.$projectId.'/tasks/'.$taskId
there is download_url
element of an array of each attachment. But the url is like https://warehouse.activecollab.com/api/v1/files/2024-08%2xxxxxx.jpeg/xxxxxxxxx/download?force=1&intent=--DOWNLOAD-TOKEN--
It seems like I need a download token.
What is DOWNLOAD-TOKEN
? How to get it?
You should GET the token from the /api/v1/issue-file-access-token You'll get the download token in the response. Also be aware of the TTL, since the token will expire.