Package com.google.gdata.data.youtube

Examples of com.google.gdata.data.youtube.ChannelFeed


    service.setConnectTimeout(2000);
    try {
      YouTubeQuery query = new YouTubeQuery(
          new URL(
              "https://gdata.youtube.com/feeds/api/channelstandardfeeds/most_viewed?time=all_time&max-results=10&orderby=viewCount&v=2"));
      ChannelFeed channels = service.query(query, ChannelFeed.class);
      result = new ArrayList<Channel>();
      for (ChannelEntry channel : channels.getEntries()) {
        Channel tubChannel = new Channel();
        String[] splittedId = channel.getId().split(":");
        tubChannel
            .setTitle(new Text(channel.getTitle().getPlainText()));
        tubChannel.setAlias(splittedId[splittedId.length - 1]);
View Full Code Here

TOP

Related Classes of com.google.gdata.data.youtube.ChannelFeed

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.