SlackWebAPI v1.2.0 SlackWebAPI.Api.Api View Source

API calls for all endpoints tagged Api.

Link to this section Summary

Functions

Checks API calling code.

Link to this section Functions

Link to this function

api_test(connection, opts \\ [])

View Source
api_test(Tesla.Env.client(), keyword()) ::
  {:ok, map()} | {:error, Tesla.Env.t()}

Checks API calling code.

Parameters

  • connection (SlackWebAPI.Connection): Connection to server
  • opts (KeywordList): [optional] Optional parameters

    • :foo (String.t): example property to return
    • :error (String.t): Error response to return

Returns

{:ok, %{}} on success {:error, info} on failure