Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amarjanica/discourse-scala-client
Discourse client for Scala
https://github.com/amarjanica/discourse-scala-client
Last synced: 3 months ago
JSON representation
Discourse client for Scala
- Host: GitHub
- URL: https://github.com/amarjanica/discourse-scala-client
- Owner: amarjanica
- License: mit
- Created: 2016-12-12T23:05:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T13:36:10.000Z (almost 8 years ago)
- Last Synced: 2024-10-09T18:55:31.915Z (3 months ago)
- Language: Scala
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discourse client for scala
Discourse client allows you to consume [the Discourse API](https://meta.discourse.org/t/discourse-api-documentation/22706) in your scala projects.
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/95beb2c674fa49769c219f7d77cf810a)](https://www.codacy.com/app/ana-marjanica/discourse-scala-client?utm_source=github.com&utm_medium=referral&utm_content=amarjanica/discourse-scala-client&utm_campaign=badger)
## 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))
```