Package org.jinstagram.entity.media

Examples of org.jinstagram.entity.media.MediaInfoFeed


   */
  public MediaInfoFeed getMediaInfo(String mediaId) throws InstagramException {
    Preconditions.checkNotNull(mediaId, "mediaId cannot be null.");

    String apiMethod = String.format(Methods.MEDIA_BY_ID, mediaId);
    MediaInfoFeed feed = createInstagramObject(Verbs.GET, MediaInfoFeed.class, apiMethod, null);

    return feed;
  }
View Full Code Here


     */
    public MediaInfoFeed getMediaInfoByShortcode(String shortcode) throws InstagramException {
        Preconditions.checkNotNull(shortcode, "shortcode cannot be null.");

        String apiMethod = String.format(Methods.MEDIA_BY_SHORTCODE, shortcode);
        MediaInfoFeed feed = createInstagramObject(Verbs.GET, MediaInfoFeed.class, apiMethod, null);

        return feed;
    }
View Full Code Here

        }

        System.out.println("***** User Info ******");
        System.out.println("Username : " + userInfo.getData());

        MediaInfoFeed infoFeed = instagram.getMediaInfoByShortcode("svzdnlDBLs");
        System.out.print("***** Feed Info ******");
        System.out.print("Caption : " + infoFeed.getData().getCaption().getText());
    }
View Full Code Here

TOP

Related Classes of org.jinstagram.entity.media.MediaInfoFeed

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.