Given a private url from slack, this code will return it's public link.
More about Slack Shared Public Url API here
$ make install
Ensure you have a valid Slack API Token on your environment variable set:
export SLACK_API_TOKEN=****-**********-************-************-*************
Then follow the steps below:
- Upload a new image on your slack.
- Get it's private url (probably with the mouse right button)
- Run:
$ make run url={PRIVATE_URL}
$ make test
Assuming you have your AWS credentials in
place you can just
call make deploy
as follows:
$ make deploy
There are many ways to contribute, such as fixing opened issues, creating them or suggesting new ideas. Either way will be very appreciated.
get-public-url-from-slack is released under the MIT License.