Examples of GoogleBuzzAPITemplate


Examples of org.encuestame.social.api.GoogleBuzzAPITemplate

    /**
     *
     */
    @Override
    public GoogleBuzzAPITemplate getAPISocialProvider() {
        return new GoogleBuzzAPITemplate(getAccessGrant().getAccessToken(),
                EnMePlaceHolderConfigurer.getProperty("google.api.key"));
    }
View Full Code Here

Examples of org.encuestame.social.api.GoogleBuzzAPITemplate

                published.setDatePublished(Calendar.getInstance().getTime());
                log.error(e);
                e.printStackTrace();
            }
        } else if (socialAccount.getAccounType().equals(SocialProvider.GOOGLE_BUZZ)) {
            BuzzAPIOperations buzzInAPIOperations = new GoogleBuzzAPITemplate(socialAccount);
            try {
                log.debug("Publish on LinkedIn............>");
                published = buzzInAPIOperations.updateStatus(tweetText);
                published.setTextTweeted(tweetText);
                published.setDatePublished(Calendar.getInstance().getTime());
                published.setTweetId(RandomStringUtils.randomAscii(15));
                log.debug("Publish on LinkedIn...... "+published);
            } catch (Exception e) {
View Full Code Here

Examples of org.encuestame.social.api.GoogleBuzzAPITemplate

        // "https://www.linkedin.com/uas/oauth/authorize?oauth_token={requestToken}";
        // final String accessTokenUrl =
        // "https://api.linkedin.com/uas/oauth/accessToken";
        final String realToken = "1/8hNJx9pdEkj6ziWJhkdPYCJFjoXZgQACKjDcse93x8Q";
        final String refreshToken = "1/2GI75S23HtwoB1kiPcaRFEqePVh1kYoniubI6obcj_8";
        GoogleBuzzAPITemplate apiTemplate = new GoogleBuzzAPITemplate(realToken,
                "AIzaSyCvEMnlGa4q4Suayx1bMYXg-Wkf1jYmmaQ");
        // try{
        // System.out.println(apiTemplate.getActivities());
        // apiTemplate.likeActivity("tag:google.com,2010:buzz-feed:public:posted:110583664879406693886");
        // } catch (HttpClientErrorException e) {
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.