I have the url working in browser that returns the JSON result of the query that gets information about the Youtube Video but don't understand how i can use the Youtube Data API to pass this JSON and look at the information.
Here is the code i am using:
YouTubeService service = new YouTubeService("app");
//service.setUserCredentials("xxx","xxxxxx");
String videoEntryUrl = String.format("https://www.googleapis.com/youtube/v3/videos?key=%s&part=snippet&id=%s"
, Config.YOUTUBE_API_KEY , (String) params[0]);
VideoEntry videoEntry = service.g.getEntry(new URL(videoEntryUrl), VideoEntry.class);
The API key i have created is a Browser Key, so the data is formatted in JSON.
Also the error i recieve is:
com.google.gdata.util.ParseException: Unrecognized content type:application/json;charset=UTF-8