Youtube support in google-api-java-client vs gdata-java-client

I am trying to use google-api-java-client (I suppose this is what is called 2.0) to write an android application for youtube. (gdata-java-client (1.x) does not support android, I understand). I read the youtube documentation, as well as the sample provided in "youtube-jsonc-sample", which only requests based requests.

I want to request a video for youtube as described in http://code.google.com/apis/youtube/2.0/developers_guide_java.html#Searching_for_Videos However, the sample fragments described there seem to be related to the older gdata APIs. I did not find anything related to youtube in google-api-java-client, except for the youtube sample. The link to code.google.com/apis/youtube/2.0/reference.html#Searching_for_videos also only makes a fleeting link to "conditions that should be used to filter the result set."

Can I request a youtube video using API 2.0 (on Android)? Show me pointers or sample code.

thanks

+4
source share
1 answer

The best example for YouTube right now is youtube-jsonc-sample , which shows how to search for YouTube videos using the JSON-C format. Although it was written to run on the command line, it should work almost unchanged on Android. You mentioned this example, but not why it does not fit your needs. Could you talk about this?

+1
source

All Articles