The files in my private channel cannot be retrieved without providing the API token on download. With the existing code, the "files" end up being HTML sign-in pages.
This PR provides the API token as a bearer token via the Authorization header. It works for me. It allows (optionally) providing the --apiToken parameter to fetch-attachments.
The files in my private channel cannot be retrieved without providing the API token on download. With the existing code, the "files" end up being HTML sign-in pages.
This PR provides the API token as a bearer token via the
Authorization
header. It works for me. It allows (optionally) providing the--apiToken
parameter tofetch-attachments
.