wiki:study Slack functionalities

Version 2 (modified by xsabol, 7 years ago) (diff)

--

Documentation

Scopes for .history API call:

  • channels.history: collects history only from SLACK public channels
  • groups.history: same as with channels, but this one works only for private channels
  • im.history: collects chat history from private conversations
  • mpim.history: collects chat history from multi-party conversations
  • conversations.history: universal scope for all 4 API calls mentioned above, it´s functionality depends on which of those 4 scopes is chatbot allowed to use. For example: if chatbot is allowed to view groups and channels but not allowed to view private messages and multi-party conversations, those API-calls get rejected automatically without limiting other scopes

List of potentionally useful information that can be obtained with SLACK API calls:

  • channels.history:
    • list of all messages, events
    • timestamps of these messages
  • users.info:
    • name, real name, team name, e-mail
    • info about user being admin, owner, bot, restriced/ultra-restricted
  • channels.info:
    • all members
    • scope of the channel (private, public, mpim..)
    • latest message
    • number of unread messages
    • topic
    • previous names