views:

143

answers:

3

Hello experts,

I have been searching for getting some solution using which I can easily get precise information regarding -

1) Youtube Most Viewed Videos 2) Youtube Most Rated Videos 3) Youtube Search

I know that this can be done with ease using gdata-java-client.

But, my requirement is that, I need to get the aforesaid three details using Google API Client Library for Java (http://code.google.com/p/google-api-java-client/)

Any help which can provide valuable information/ code which will help me get the youtube data precisely, will be well appreciated.

Looking forward for your valuable help, comments, suggestions,

Regards, Rony

A: 

Rony,

Please take a look at the youtube-jsonc-sample that uses the YouTube JSON-C feed for searching for videos.

Although it is not an Android sample, the same code should work on Android, except of course for the user interface.

Yaniv Inbar
A: 

Hello Yaniv,

Thanks for the reply.

The code worked perfectly for me in android.

But the main portion is remaining for me. In the following lines of codes,

YouTubeUrl url = YouTubeUrl.relativeToRoot("videos");
url.author = "searchstories";

what need to be changed, so that I can get the results for (1) Most viewed and (2) Most rated videos.

Regards, Rony

A: 

Yaniv, It would be great if you can kindly let me know a solution for the aforesaid comment. This is a blocking issue for me and I am stuck with it.

Rony