Examples of YouTubeService


Examples of com.google.gdata.client.youtube.YouTubeService

   
  }
 
  public static void main(String[] args) {
   
    YouTubeService service = new YouTubeService("YouTubeCheckDuplicates");
    //some search terms with results way larger than 1000
    String[] searchTerms = {"kittens", "puppies", "funny", "cute"};
   
    try {
      for(String searchTerm : searchTerms) {
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

      log.warning("clientId settings property is null or empty.");
    }

    if (util.isNullOrEmpty(developerKey)) {
      log.warning("developerKey settings property is null or empty.");
      service = new YouTubeService(clientId);
    } else {
      service = new YouTubeService(clientId, developerKey);
    }
  }
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

    this.util = Util.get();
    if (util.isNullOrEmpty(clientId)) {
      clientId = "";
      log.warning("clientId parameter is null or empty.");
    }
    service = new YouTubeService(clientId);
  }
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

   
    if (developerKey == null || developerKey.length() == 0) {
      log.warning("com.google.tchotchke.YTDeveloperKey property is not set.");
    }
   
    service = new YouTubeService(clientId, developerKey);
  }
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

 
  private final String activityFeedUrlPrefix = "http://gdata.youtube.com/feeds/api/users/";
  private final String activityFeedUrlSuffix = "/events";

  public ApiManager(ConfigData config) {
    service = new YouTubeService(config.getClientId(), config.getDevKey());
  }
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

    @Override
    public String[] export() {
        List<String> uploads = new ArrayList<String>();
        try {
            URL url = createURL();
            YouTubeService serv = new YouTubeService(null);
            YouTubeQuery query = new YouTubeQuery(url);
            query.setMaxResults(MAX_RESULTS);
            int i = 1;
            while (true) {
                query.setStartIndex(i);
                VideoFeed feed = serv.getFeed(query, VideoFeed.class);
                for (VideoEntry upload : feed.getEntries()) {
                    uploads.add(upload.getTitle().getPlainText());
                }
                i += MAX_RESULTS;
                if (i > feed.getTotalResults()) {
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

    @Override
    public String[] export() {
        List<String> playlists = new ArrayList<String>();
        try {
            URL url = createURL();
            YouTubeService serv = new YouTubeService(null);
            YouTubeQuery query = new YouTubeQuery(url);
            query.setMaxResults(MAX_RESULTS);
            int i = 1;
            while (true) {
                query.setStartIndex(i);
                PlaylistFeed feed = serv.getFeed(query, PlaylistFeed.class);
                for (PlaylistEntry entry : feed.getEntries()) {
                    playlists.add(entry.getTitle().getPlainText());
                }
                i += MAX_RESULTS;
                if (i > feed.getTotalResults()) {
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

    @Override
    public String[] export() {
        List<String> friends = new ArrayList<String>();
        try {
            URL url = createURL();
            YouTubeService serv = new YouTubeService(null);
            int i = 1;
            while (true) {
                YouTubeQuery query = new YouTubeQuery(url);
                query.setMaxResults(MAX_RESULTS);
                query.setStartIndex(i);
                FriendFeed feed = serv.query(query, FriendFeed.class);
                for (FriendEntry entry : feed.getEntries()) {
                    friends.add(entry.getUsername());
                }
                i += MAX_RESULTS;
                if (i > feed.getTotalResults()) {
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

    @Override
    public String[] export() {
        List<String> subscriptions = new ArrayList<String>();
        try {
            URL url = createURL();
            YouTubeService serv = new YouTubeService(null);
            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()) {
View Full Code Here

Examples of com.google.gdata.client.youtube.YouTubeService

    @Override
    public String[] export() {
        List<String> favs = new ArrayList<String>();
        try {
            URL url = createURL();
            YouTubeService serv = new YouTubeService(null);
            YouTubeQuery query = new YouTubeQuery(url);
            query.setMaxResults(MAX_RESULTS);
            int i = 1;
            while (true) {
                query.setStartIndex(i);
                VideoFeed feed = serv.getFeed(query, VideoFeed.class);
                for (VideoEntry fav : feed.getEntries()) {
                    favs.add(fav.getTitle().getPlainText());
                }
                i += MAX_RESULTS;
                if (i > feed.getTotalResults() || i > 1000) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.