amarjanica / discourse-scala-client

Discourse client for Scala


Discourse client for scala

Discourse client allows you to consume the Discourse API in your scala projects.
Codacy Badge


Add this in your sbt build definition:
libraryDependencies += "com.amarjanica" %% "discourse-scala-client" % "1.1.0"

Example of usage

import com.amarjanica.discourse.{Credentials, DiscourseClient}

val discourseUrl = "" // replace it
val credentials = Credentials(
  api_username = "your_discourse_username",
  api_key = "very_long_string"
val discourseClient = new DiscourseClient(discourseUrl, Some(credentials))