Advertisement
Guest User

Untitled

a guest
Jun 8th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.48 KB | None | 0 0
  1. import play.api.libs.json.{JsError, JsSuccess, Json, JsValue}
  2. import play.api.libs.json._
  3. import dispatch._
  4. import Defaults._
  5.  
  6. object EventBriteGetter {
  7.  
  8.   def main(args: Array[String]): Unit = {
  9.     print("Querying API...")
  10.     val ebReq = url("https://www.eventbriteapi.com/v3/events/search/")
  11.     val cityReq = ebReq.addQueryParameter("venue.city", "Hollywood")
  12.     val finalReq = cityReq.addQueryParameter("token", "1234")
  13.     val request = Http(finalReq OK as.String)
  14.   }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement