Package org.jinstagram

Examples of org.jinstagram.Instagram


                */
        String accessToken = "7073519.44e6baf.d44336e2e99741f6a5bed94b26f1699c";

        Token secretToken  = new Token(accessToken,null);

        Instagram instagram = new Instagram(secretToken);


        UserInfo userInfo = instagram.getCurrentUserInfo();

        MediaFeed mediaFeed =  instagram.getRecentMediaFeed(userInfo.getData().getId());
        // MediaFeed mediaFeed =  instagram.getUserFeeds();

        List<MediaFeedData> mediaList = mediaFeed.getData();

        for(MediaFeedData data : mediaList) {
            System.out.println("data : " + data.getId());

            instagram.setMediaComments(data.getId(), "Comment was created at " + new Date().toString());
        }

        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.Instagram

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.