Examples of UserFeed


Examples of com.google.gdata.data.photos.UserFeed

   * Retrieves the albums for the given user.
   */
  public List<AlbumEntry> getAlbums(String username) throws IOException, ServiceException {

    String albumUrl = PWA_API_PREFIX + username;
    UserFeed userFeed = getFeed(albumUrl, UserFeed.class);

    List<GphotoEntry> entries = userFeed.getEntries();
    List<AlbumEntry> albums = new ArrayList<AlbumEntry>();
    for (GphotoEntry entry : entries) {
      GphotoEntry adapted = entry.getAdaptedEntry();
      if (adapted instanceof AlbumEntry) {
        albums.add((AlbumEntry) adapted);
View Full Code Here

Examples of com.google.gdata.data.photos.UserFeed

   * Retrieves the tags for the given user. These are tags aggregated across
   * the entire account.
   */
  public List<TagEntry> getTags(String uname) throws IOException, ServiceException {
    String tagUrl = PWA_API_PREFIX + uname + "?kind=tag";
    UserFeed userFeed = getFeed(tagUrl, UserFeed.class);

    List<GphotoEntry> entries = userFeed.getEntries();
    List<TagEntry> tags = new ArrayList<TagEntry>();
    for (GphotoEntry entry : entries) {
      GphotoEntry adapted = entry.getAdaptedEntry();
      if (adapted instanceof TagEntry) {
        tags.add((TagEntry) adapted);
View Full Code Here

Examples of com.google.gdata.data.photos.UserFeed

   */
  public List<AlbumEntry> getAlbums(String username) throws IOException,
      ServiceException {

    String albumUrl = API_PREFIX + username;
    UserFeed userFeed = getFeed(albumUrl, UserFeed.class);

    List<GphotoEntry> entries = userFeed.getEntries();
    List<AlbumEntry> albums = new ArrayList<AlbumEntry>();
    for (GphotoEntry entry : entries) {
      GphotoEntry adapted = entry.getAdaptedEntry();
      if (adapted instanceof AlbumEntry) {
        albums.add((AlbumEntry) adapted);
View Full Code Here

Examples of com.google.gdata.data.photos.UserFeed

   * the entire account.
   */
  public List<TagEntry> getTags(String uname) throws IOException,
      ServiceException {
    String tagUrl = API_PREFIX + uname + "?kind=tag";
    UserFeed userFeed = getFeed(tagUrl, UserFeed.class);

    List<GphotoEntry> entries = userFeed.getEntries();
    List<TagEntry> tags = new ArrayList<TagEntry>();
    for (GphotoEntry entry : entries) {
      GphotoEntry adapted = entry.getAdaptedEntry();
      if (adapted instanceof TagEntry) {
        tags.add((TagEntry) adapted);
View Full Code Here

Examples of com.google.gdata.data.photos.UserFeed

      PicasawebService service = new PicasawebService("Kirin-App");
      service.setAuthSubToken(this.getThreadLocalRequest().getSession().getAttribute("sessionToken").toString());

      URL feedUrl = new URL("https://picasaweb.google.com/data/feed/api/user/" + userId + "?kind=album");

      UserFeed userFeed = service.getFeed(feedUrl, UserFeed.class);
      AlbumModel albumModel = null;

      for (AlbumEntry albumEntry : userFeed.getAlbumEntries()) {
        albumModel = new AlbumModel();
        albumModel.setAlbumid(albumEntry.getGphotoId());
        albumModel.setName(albumEntry.getTitle().getPlainText());
        albumModel.setUpdate(albumEntry.getUpdated().toString());
        result.add(albumModel);
View Full Code Here

Examples of org.jinstagram.entity.users.feed.UserFeed

    Preconditions.checkNotNull(query, "search query cannot be null.");

    Map<String, String> params = new HashMap<String, String>();
    params.put(QueryParam.SEARCH_QUERY, query);

    UserFeed userFeed = createInstagramObject(Verbs.GET, UserFeed.class, Methods.USERS_SEARCH, params);

    return userFeed;
  }
View Full Code Here

Examples of org.jinstagram.entity.users.feed.UserFeed

        if(count > 0) {
            params.put(QueryParam.COUNT, String.valueOf(count));
        }

        UserFeed userFeed = createInstagramObject(Verbs.GET, UserFeed.class, Methods.USERS_SEARCH, params);

        return userFeed;
    }
View Full Code Here

Examples of org.jinstagram.entity.users.feed.UserFeed

   */
  public UserFeed getUserFollowList(String userId) throws InstagramException {
    Preconditions.checkEmptyString(userId, "userId cannot be null or empty.");

    String apiMethod = String.format(Methods.USERS_ID_FOLLOWS, userId);
    UserFeed userFeed = createInstagramObject(Verbs.GET, UserFeed.class, apiMethod, null);

    return userFeed;
  }
View Full Code Here

Examples of org.jinstagram.entity.users.feed.UserFeed

   */
  public UserFeed getUserFollowedByList(String userId) throws InstagramException {
    Preconditions.checkEmptyString(userId, "userId cannot be null or empty.");

    String apiMethod = String.format(Methods.USERS_ID_FOLLOWED_BY, userId);
    UserFeed userFeed = createInstagramObject(Verbs.GET, UserFeed.class, apiMethod, null);

    return userFeed;
  }
View Full Code Here

Examples of org.jinstagram.entity.users.feed.UserFeed

   *
   * @return a UserFeed object.
   * @throws InstagramException if any error occurs.
   */
  public UserFeed getUserRequestedBy() throws InstagramException {
    UserFeed userFeed = createInstagramObject(Verbs.GET, UserFeed.class, Methods.USERS_SELF_REQUESTED_BY, null);

    return userFeed;
  }
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.