Packages

t

org.latestbit.slack.morphism.client.impl

SlackApiTestClient

trait SlackApiTestClient[F[_]] extends SlackApiHttpProtocolSupport[F]

Support for Slack test API methods

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SlackApiTestClient
  2. SlackApiHttpProtocolSupport
  3. SlackApiClientBackend
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type SlackApiEmptyType = JsonObject
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport

Abstract Value Members

  1. implicit abstract val sttpBackend: SttpBackendType[F]
    Attributes
    protected
    Definition Classes
    SlackApiClientBackend

Concrete Value Members

  1. object http
    Definition Classes
    SlackApiHttpProtocolSupport
  2. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  3. final def ##(): Int
    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. val SLACK_EMPTY_REQUEST: SlackApiEmptyType
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def checkIfContentTypeIsJson(contentType: MediaType): Boolean
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  8. def circeDecodingErrorToApiError(uri: Uri, error: Error, body: String): SlackApiClientError
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def createSlackHttpApiRequest(): RequestT[Empty, Either[String, String], Nothing]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  11. def decodeSlackGeneralResponse(body: String): Either[Error, SlackGeneralResponseParams]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  12. def decodeSlackResponse[RS](uri: Uri, response: Response[Either[String, String]])(implicit decoder: Decoder[RS]): Either[SlackApiClientError, RS]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  13. def encodePostBody[RQ](request: RequestT[Empty, Either[String, String], Nothing], body: RQ)(implicit encoder: Encoder[RQ]): RequestT[Empty, Either[String, String], Nothing]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getSlackMethodAbsoluteUri(methodUri: String): Uri
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  19. def handleSlackEmptyRes[RS](replacement: ⇒ RS)(either: Either[SlackApiClientError, RS]): Either[SlackApiClientError, RS]

    Some of Slack responses historically returns HTTP plain text responses with 'Ok' body, instead JSON.

    Some of Slack responses historically returns HTTP plain text responses with 'Ok' body, instead JSON. So, this auxiliary function helps to fix and hide this behaviour.

    RS

    response type

    replacement

    what should be returned instead HTTP OK

    either

    a response result to fix

    returns

    either other error or fixed empty result

    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
    Note

    There are very few methods that behave like that, so we're fixing it for those particular functions, instead of generalising this behaviour for other API methods.

  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def protectedSlackHttpApiGet[RS](methodUri: String, request: RequestT[Empty, Either[String, String], Nothing], params: Map[String, Option[String]], methodRateControl: Option[SlackApiMethodRateControlParams])(implicit slackApiToken: SlackApiToken, decoder: Decoder[RS], backendType: BackendType[F]): F[Either[SlackApiClientError, RS]]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  26. def protectedSlackHttpApiPost[RQ, RS](methodUri: String, body: RQ, methodRateControl: Option[SlackApiMethodRateControlParams])(implicit slackApiToken: SlackApiToken, encoder: Encoder[RQ], decoder: Decoder[RS], backendType: BackendType[F]): F[Either[SlackApiClientError, RS]]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  27. def protectedSlackHttpApiPost[RQ, RS](absoluteUri: Uri, request: RequestT[Empty, Either[String, String], Nothing], body: RQ, methodRateControl: Option[SlackApiMethodRateControlParams])(implicit slackApiToken: SlackApiToken, encoder: Encoder[RQ], decoder: Decoder[RS], backendType: BackendType[F]): F[Either[SlackApiClientError, RS]]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  28. def protectedSlackHttpApiRequest[RS](request: Request[Either[String, String], Nothing], methodRateControl: Option[SlackApiMethodRateControlParams])(implicit slackApiToken: SlackApiToken, decoder: Decoder[RS], backendType: BackendType[F]): F[Either[SlackApiClientError, RS]]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  29. def sendSlackRequest[RS](request: Request[Either[String, String], Nothing])(implicit decoder: Decoder[RS], backendType: BackendType[F]): F[Either[SlackApiClientError, RS]]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  30. def slackGeneralResponseToError(uri: Uri, response: Response[Either[String, String]], generalResponseParams: SlackGeneralResponseParams): Option[SlackApiClientError]
    Attributes
    protected
    Definition Classes
    SlackApiHttpProtocolSupport
  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. object api

Inherited from SlackApiHttpProtocolSupport[F]

Inherited from SlackApiClientBackend[F]

Inherited from AnyRef

Inherited from Any

Ungrouped