Package org.encuestame.social.api

Examples of org.encuestame.social.api.LinkedInAPITemplate.updateStatus()


                    EnMePlaceHolderConfigurer.getProperty("linkedIn.oauth.api.secret"),
                    socialAccount.getAccessToken(),
                    socialAccount.getSecretToken());
            try {
                log.debug("Publish on LinkedIn 1............>");
                published = linkedInAPIOperations.updateStatus(tweetText);
                published.setTextTweeted(tweetText);
                published.setDatePublished(Calendar.getInstance().getTime());
                published.setTweetId(RandomStringUtils.randomAscii(15));
                log.debug("Publish on LinkedIn 2...... "+published);
            } catch (Exception e) {
View Full Code Here


        String token = "e222076b-f187-474a-9ffd-1c7f27760fec";
        String tokenSecret = "75db960b-2951-48c4-b030-293166a0de8f";

        LinkedInAPITemplate tp = new LinkedInAPITemplate(apiKey, apiSecret, token, tokenSecret);
        LinkedInProfile p =  tp.getUserProfile();
        tp.updateStatus("Probando LinkedIn API desde @encuestame, twitter activado", true);
        final List<LinkedInProfile> list = tp.getConnections();
        for (LinkedInProfile linkedInProfile : list) {
            //System.out.println("&&&&&&&&&&&&&&&&&&&&& "+linkedInProfile.getFirstName());
            //System.out.println("&&&&&&&&&&&&&&&&&&&&& "+linkedInProfile.getHeadline());
            //System.out.println("&&&&&&&&&&&&&&&&&&&&& "+linkedInProfile.getPublicProfileUrl());
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.