Greetings, For acadmic purposes, I want to create a standalone app which can search and find web images with word keys.
Im using this code, which is shown in this link: https://developers.google.com/image-search/v1/jsondevguide?csw=1#json_snippets_java Code: URL url = new URL("https://ajax.googleapis.com/ajax/services/search/images?" + "v=1.0&q=barack%20obama&userip=INSERT-USER-IP"); URLConnection connection = url.openConnection(); connection.addRequestProperty("Referer", /* Enter the URL of your site here */); String line; StringBuilder builder = new StringBuilder(); BufferedReader reader = new BufferedReader(new InputStreamReader(connection.getInputStream())); while((line = reader.readLine()) != null) { builder.append(line); } JSONObject json = new JSONObject(builder.toString()); I have the following questions, in base of this code: 1) Which library (jar file) should I use of JSON? (The page recomended in the Google example doesn't show libraries or jars) 2) If I'm writing a standalone application, what should I put in the /*Enter the URL of your site here*/ thing? Thank you a lot :) -- -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to google-ajax-search-api@googlegroups.com To unsubscribe from this group, send email to google-ajax-search-api+unsubscr...@googlegroups.com To view this message on the web, visit https://groups.google.com/d/msgid/google-ajax-search-api/9a1bb579-ca73-4cb4-bb06-b72f10631cf7%40googlegroups.com For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-ajax-search-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.