Skip to content

Instantly share code, notes, and snippets.

Created December 30, 2012 15:17
Show Gist options
  • Save anonymous/4413256 to your computer and use it in GitHub Desktop.
Save anonymous/4413256 to your computer and use it in GitHub Desktop.
Freesound API
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