All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.misk.slack.webapi.RealSlackClientModule.kt Maven / Gradle / Ivy

There is a newer version: 2024.09.25.163146-1b49d90
Show newest version
package misk.slack.webapi

import misk.client.TypedHttpClientModule
import misk.inject.KAbstractModule
import misk.slack.webapi.interceptors.SlackClientInterceptor
import misk.slack.webapi.interceptors.SlackSignedRequestsInterceptor
import misk.web.NetworkInterceptor
import okhttp3.Interceptor

class RealSlackClientModule(
  private val config: SlackConfig,
) : KAbstractModule() {
  override fun configure() {
    install(TypedHttpClientModule.create("slack"))
    multibind().to()
    bind().to()
    bind().toInstance(config)
    multibind().to()
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy