Skip to content

Instantly share code, notes, and snippets.

@Sciss
Forked from anonymous/freesound_new.scala
Created December 30, 2012 15:18
Show Gist options
  • Save Sciss/4413264 to your computer and use it in GitHub Desktop.
Save Sciss/4413264 to your computer and use it in GitHub Desktop.
// libraryDependencies += "net.databinder.dispatch" %% "dispatch-core" % "0.9.4"
import dispatch._
val q = url("http://www.freesound.org/api/sounds/search")
.addQueryParameter("q", "barking")
.addQueryParameter("api_key", "074c0b328aea46adb3ee76f6918f8fae")
val p = Http.configure(_ setFollowRedirects true)(q OK as.String)
p() // -> this needs to be fed into a JSON parser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment