Slack v0.23.5 Slack.Web.Search View Source

Link to this section Summary

Functions

Searches for messages and files matching a query

Searches for files matching a query

Searches for messages matching a query

Link to this section Functions

Link to this function

all(query, optional_params \\ %{}) View Source

Searches for messages and files matching a query.

Required Params

  • query - Search query. May contains booleans, etc. ex: pickleface

Optional Params

  • highlight - Pass a value of 1 to enable query highlight markers (see below). ex: 1
  • sort - Return matches sorted by either score or timestamp. ex: timestamp
  • sort_dir - Change sort direction to ascending (asc) or descending (desc). ex: asc

Errors the API can return:

Link to this function

files(query, optional_params \\ %{}) View Source

Searches for files matching a query.

Required Params

  • query - Search query. May contain booleans, etc. ex: pickleface

Optional Params

  • highlight - Pass a value of 1 to enable query highlight markers (see below). ex: 1
  • sort - Return matches sorted by either score or timestamp. ex: timestamp
  • sort_dir - Change sort direction to ascending (asc) or descending (desc). ex: asc

Errors the API can return:

Link to this function

messages(query, optional_params \\ %{}) View Source

Searches for messages matching a query.

Required Params

  • query - Search query. May contains booleans, etc. ex: pickleface

Optional Params

  • highlight - Pass a value of 1 to enable query highlight markers (see below). ex: 1
  • sort - Return matches sorted by either score or timestamp. ex: timestamp
  • sort_dir - Change sort direction to ascending (asc) or descending (desc). ex: asc

Errors the API can return: