amarjanica / discourse-scala-client   1.1.1

MIT License GitHub

Discourse client for Scala

Scala versions: 2.12

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))