I am trying to get the JSON data from a Twitter search request such as this link text into my Java program so that I can parse it using Gson. How would I get the data from that URL into Java? Would I use an http request or something else? I’ve seen JSONRequest.get, but I can’t see where that’s coming from at all.
Share
You need to use HttpURLConnection if you want to do it with plain java.
I’d recommend using the apache commons http client if possible