mrkaye97 / slackr

An R package for sending messages from R to Slack
https://matthewrkaye.com/slackr/
Other
307 stars 84 forks source link

history_slackr and private channels #76

Closed hathawayj closed 3 years ago

hathawayj commented 6 years ago

When I use history_slackr(1, "private_channel") it returnsNULL. I can see the private channels through a call toslackr_groups(). However, none of those private channels will return data with a call tohistory_slack()`.

I used https://api.slack.com/custom-integrations/legacy-tokens to create my tokens. I have tested and I can use history_slackr() to get data from public channels.

sentieonycdev commented 6 years ago

I have the same issue as above. I can post to private channels but history_slackr returns null.

MrAE commented 5 years ago

It doesn't seem that user tokens allow history access to private channels. See below

User tokens gain the "old world" resource-based OAuth scopes requested in the installation process (example: asking for channels:history grants access a user token access to channels.history for any public channel)

from https://api.slack.com/docs/token-types#user