object SlackApiClient
- Alphabetic
- By Inheritance
- SlackApiClient
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- case class SlackApiClientBuildOptions[F[_]] extends Product with Serializable
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
build[F[_]](sttpBackend: SttpBackendType[F])(implicit arg0: BackendType[F]): SlackApiClientBuildOptions[F]
Build an instance of Slack API client with the specified backend and options
Build an instance of Slack API client with the specified backend and options
- F
scala.concurrent.Future or cats.effect.IO
- sttpBackend
an STTP backend
- returns
an instance builder
-
def
build[F[_]](implicit arg0: BackendType[F], sttpBackend: SttpBackendType[F]): SlackApiClientBuildOptions[F]
Build an instance of Slack API client with the specified options
Build an instance of Slack API client with the specified options
For example:
SlackApiClient .build(AsyncHttpClientFutureBackend()) .withThrottler( SlackApiRateThrottler.createStandardThrottler() ) .create()
- F
scala.concurrent.Future or cats.effect.IO
- sttpBackend
an implicitly defined STTP backend
- returns
an instance builder
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
create[F[_]]()(implicit arg0: BackendType[F], sttpBackend: SttpBackendType[F]): SlackApiClientT[F]
Create an instance of Slack API client for the specified backend kind (Future|cats-effect IO, etc)
Create an instance of Slack API client for the specified backend kind (Future|cats-effect IO, etc)
- F
scala.concurrent.Future or cats.effect.IO
- sttpBackend
an implicitly defined STTP backend
- returns
an instance of Slack API client For example:
// For Future: implicit val sttpBackend = AsyncHttpClientFutureBackend() val client = SlackApiClient.create[Future]()
An example for cats-effect IO:
implicit val cs: ContextShift[IO] = IO.contextShift( scala.concurrent.ExecutionContext.global ) for { backend <- AsyncHttpClientCatsBackend[IO]() // Creating an STTP backend client = SlackApiClient.build[IO]( backend ).create() // Create a Slack API client result <- client.api.test( SlackApiTestRequest() ) // call an example method inside IO monad } yield result
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toResource[F[_]](client: SlackApiClientT[F])(implicit arg0: BackendType[F]): Resource[F, SlackApiClientT[F]]
Wrap a client instance into cats Resource
Wrap a client instance into cats Resource
- F
scala.concurrent.Future or cats.effect.IO
- client
a client instance
- returns
a resource
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()