From 783118e7734374ba3e181030fa71ad33192b0f5d Mon Sep 17 00:00:00 2001 From: Daniel Shiffman Date: Wed, 12 Mar 2014 22:09:36 -0400 Subject: [PATCH] fixing build properties, updating examples --- examples/get/get.pde | 4 ++-- examples/jsonget/jsonget.pde | 4 ++-- examples/post/post.pde | 2 +- resources/build.properties | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/get/get.pde b/examples/get/get.pde index f0ba26d..b5f6902 100644 --- a/examples/get/get.pde +++ b/examples/get/get.pde @@ -1,4 +1,4 @@ -import httprocessing.*; +import http.requests.*; public void setup() { @@ -9,4 +9,4 @@ public void setup() get.send(); println("Reponse Content: " + get.getContent()); println("Reponse Content-Length Header: " + get.getHeader("Content-Length")); -} \ No newline at end of file +} diff --git a/examples/jsonget/jsonget.pde b/examples/jsonget/jsonget.pde index e31d177..2ec81f7 100644 --- a/examples/jsonget/jsonget.pde +++ b/examples/jsonget/jsonget.pde @@ -1,4 +1,4 @@ -import httprocessing.*; +import http.requests.*; public void setup() { @@ -9,7 +9,7 @@ public void setup() get.send(); // program will wait untill the request is completed println("response: " + get.getContent()); - JSONObject response = JSONObject.parse(get.getContent()); + JSONObject response = parseJSONObject(get.getContent()); println("status: " + response.getString("status")); JSONArray boxes = response.getJSONArray("data"); println("boxes: "); diff --git a/examples/post/post.pde b/examples/post/post.pde index 928c03c..e1e5ea6 100644 --- a/examples/post/post.pde +++ b/examples/post/post.pde @@ -1,4 +1,4 @@ -import httprocessing.*; +import http.requests.*; public void setup() { diff --git a/resources/build.properties b/resources/build.properties index 64ec9e9..0930a13 100644 --- a/resources/build.properties +++ b/resources/build.properties @@ -59,7 +59,7 @@ classpath.libraries.location=${sketchbook.location}/libraries # (3) # Set the java version that should be used to compile your library. -java.target.version=1.7 +java.target.version=1.6 # Set the description of the Ant build.xml file.