grundleborg / slack-advanced-exporter

A tool for exporting additional data from Slack that is missing from the official data export.
MIT License
95 stars 18 forks source link

Support API tokens on file download. #13

Closed kw217 closed 2 years ago

kw217 commented 5 years ago

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.

kw217 commented 2 years ago

Thanks!