package client
Slack API http client interfaces and factory methods and implementation
- Grouped
- Alphabetic
- By Inheritance
- client
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
SlackApiBotToken(value: String, scope: Option[String] = None, workspaceId: Option[String] = None) extends SlackApiToken with Product with Serializable
Slack API bot token
Slack API bot token
- value
token value
- scope
token scope in a string form
- workspaceId
a workspace/team id for this token
-
type
SlackApiClient = SlackApiClientT[Future]
For compatibility reasons SlackApiClient defined as in previous versions (before 1.2+) so you still can create it with
new SlackApiClient() -
trait
SlackApiClientBackend[F[_]] extends AnyRef
A trait defines requirement for STTP backend
-
sealed abstract
class
SlackApiClientError extends SlackApiError
Slack Web API error
-
class
SlackApiClientT[F[_]] extends SlackApiHttpRateControlSupport[F] with SlackApiOAuthClient[F] with SlackApiTestClient[F] with SlackApiAppsClient[F] with SlackApiAuthClient[F] with SlackApiBotsClient[F] with SlackApiChannelsClient[F] with SlackApiChatClient[F] with SlackApiConversationsClient[F] with SlackApiDndClient[F] with SlackApiEmojiClient[F] with SlackApiImClient[F] with SlackApiPinsClient[F] with SlackApiReactionsClient[F] with SlackApiTeamClient[F] with SlackApiUsersClient[F] with SlackApiViewsClient[F] with SlackApiEventsCallbackClient[F]
Slack API client
-
case class
SlackApiConnectionError(uri: Uri, cause: IOException) extends SlackApiClientError with SlackApiRetryableError with Product with Serializable
Slack Web API network/connection error
Slack Web API network/connection error
- uri
Web method URL
- cause
original cause
-
case class
SlackApiDecodingError(uri: Uri, coderError: Error, httpResponseBody: Option[String] = None) extends SlackApiClientError with Product with Serializable
Slack Web API JSON decoding error
Slack Web API JSON decoding error
- uri
Web method URL
- coderError
JSON decoder error
- httpResponseBody
HTTP response body
-
case class
SlackApiEmptyResultError(uri: Uri) extends SlackApiClientError with Product with Serializable
Slack Wep API unexpected empty result has been received
Slack Wep API unexpected empty result has been received
- uri
Web method URL
-
case class
SlackApiHttpError(uri: Uri, message: String, httpStatusCode: StatusCode, httpResponseBody: Option[String] = None) extends SlackApiClientError with SlackApiRetryableError with Product with Serializable
Slack Web API HTTP protocol error
Slack Web API HTTP protocol error
- uri
Web method URL
- message
error message
- httpStatusCode
HTTP status code
- httpResponseBody
HTTP response body
-
case class
SlackApiRateLimitMaxDelayError(uri: Uri, message: String) extends SlackApiClientError with Product with Serializable
Slack Web API rate limit max delay error
Slack Web API rate limit max delay error
- uri
Web method URL
- message
error message
-
case class
SlackApiRateLimitedError(uri: Uri, retryAfter: Option[Long] = None, details: Option[String] = None, warning: Option[String] = None, messages: Option[List[String]] = None) extends SlackApiClientError with SlackApiRetryableError with Product with Serializable
Slack Web API protocol rate limited error
Slack Web API protocol rate limited error
- uri
Web method URL
- retryAfter
retry after specified interval (in seconds)
- details
error detail message
- warning
Slack warnings
- messages
Slack error messages
-
case class
SlackApiResponseError(uri: Uri, errorCode: String, httpStatusCode: StatusCode, details: Option[String] = None, warning: Option[String] = None, messages: Option[List[String]] = None) extends SlackApiClientError with Product with Serializable
Slack Web API protocol general error
Slack Web API protocol general error
- uri
Web method URL
- errorCode
Slack error code
- httpStatusCode
HTTP status code
- details
error detail message
- warning
Slack warnings
- messages
Slack error messages
-
trait
SlackApiRetryableError extends AnyRef
A trait to mark retryable errors
-
case class
SlackApiSystemError(uri: Uri, cause: Throwable) extends SlackApiClientError with Product with Serializable
System/unexpected Slack Web API error
System/unexpected Slack Web API error
- uri
Web method URL
- cause
original cause
-
trait
SlackApiToken extends AnyRef
Slack API token base representation
-
case class
SlackApiUserToken(value: String, scope: Option[String] = None, workspaceId: Option[String] = None) extends SlackApiToken with Product with Serializable
Slack API user token
Slack API user token
- value
token value
- scope
token scope in a string form
- workspaceId
a workspace/team id for this token
Value Members
- object SlackApiClient
- object SlackApiClientBackend
-
object
SlackApiToken
Slack API token utility constructors and constants