Version Matrix

Discourse client for scala

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

Installation

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 = "http://127.0.0.1:80" // replace it
val credentials = Credentials(
  api_username = "your_discourse_username",
  api_key = "very_long_string"
)
val discourseClient = new DiscourseClient(discourseUrl, Some(credentials))