slackr_channel_history() uses the channels.history endpoint from the Slack web API.
I added some defaults so that the function should work if slackr_setup() had already been ran or if the environment variables were already set. The function parameters should allow the user to have some flexibilty to retrieve messages from various channels at different points in time.
Future extensions could allow user to loop through paginated results instead of retrieving messages only as related to time in Linux format. Could also add option to include if the message had been read in output.
slackr_channel_history()
uses the channels.history endpoint from the Slack web API.I added some defaults so that the function should work if
slackr_setup()
had already been ran or if the environment variables were already set. The function parameters should allow the user to have some flexibilty to retrieve messages from various channels at different points in time.Future extensions could allow user to loop through paginated results instead of retrieving messages only as related to time in Linux format. Could also add option to include if the message had been read in output.