Skip to content

AntonDome9/scala-slack-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Bintray Download

About

Minimalistic Slack client to post messages via Incoming Webhooks.

Usage

import scala.concurrent.Future
import com.igeolise.slack.HttpSlackClient
import com.igeolise.slack.SlackClient._

val token: String = "XXX/YYY/ZZZ"
val response: Future[Either[Error, Unit]] = HttpSlackClient(token).sendMsg(
  notify = Seq(Notify.User("name")),
  msg = "message text",
  attachments = Seq(Attachment("attachment text", Color.Red))
)

import scala.concurrent.Await
import scala.concurrent.duration._

println(Await.result(response, 1.minute))
// Right(())

SBT dependency

Package is available at Bintray. Check for the latest version and add to your build.sbt:

resolvers += Resolver.bintrayRepo("igeolise", "maven")

libraryDependencies += "com.igeolise" %% "scala-slack-client" % "<latest_version>"

Development

Check Wiki for development notes.

About

Minimalistic Slack client for Scala language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 96.6%
  • Shell 3.4%