Package com.google.gdata.data.youtube

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


            YouTubeQuery query = new YouTubeQuery(url);
            query.setMaxResults(MAX_RESULTS);
            int i = 1;
            while (true) {
                query.setStartIndex(i);
                SubscriptionFeed feed = serv.query(query, SubscriptionFeed.class);
                for (SubscriptionEntry entry : feed.getEntries()) {
                    subscriptions.add(entry.getUsername());
                }
                i += MAX_RESULTS;
                if (i > feed.getTotalResults()) {
                    break;
                }
            }
        } catch (Exception ex) {
            ex.printStackTrace();
View Full Code Here


   * @throws ServiceException If the service is unable to handle the request.
   * @throws IOException error sending request or reading the feed.
   */
  private static void printSubscriptionsFeed(YouTubeService service,
      String feedUrl) throws IOException, ServiceException {
    SubscriptionFeed subscriptionFeed = service.getFeed(new URL(feedUrl),
        SubscriptionFeed.class);
    printUnderlined(subscriptionFeed.getTitle().getPlainText());
    for (SubscriptionEntry se : subscriptionFeed.getEntries()) {
      printSubscriptionEntry(se);
    }
    System.out.println();
  }
View Full Code Here

TOP

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

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.