Skip to content

Instantly share code, notes, and snippets.

import scala.util.parsing.json.JSON
import scalaj.http.Http
// Assumes a list of objects. If response i only as single object, the last
// .asInstanceOf[Seq[Map[String, Any]]] could be changed to .asInstanceOf[Map[String, Any]]
def getService(serviceURL: String, serviceAuthToken: String): Seq[Map[String, Any]] = {
JSON.parseFull(
Http(serviceURL)
.timeout(connTimeoutMs = 600000, readTimeoutMs = 10000)

Keybase proof

I hereby claim:

  • I am ryge on github.
  • I am ryge (https://keybase.io/ryge) on keybase.
  • I have a public key whose fingerprint is 6586 0F26 A8BB C695 D4BE 8223 D81C E4B0 4436 44AA

To claim this, I am signing this object: