Created
December 30, 2012 15:17
-
-
Save anonymous/4413256 to your computer and use it in GitHub Desktop.
Freesound API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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