Examples of OAuth1


Examples of com.twitter.hbc.httpclient.auth.OAuth1

    BlockingQueue<String> queue = new LinkedBlockingQueue<String>(10000);
    StatusesFilterEndpoint endpoint = new StatusesFilterEndpoint();
    // add some track terms
    endpoint.trackTerms(Lists.newArrayList("twitterapi", "#yolo"));

    Authentication auth = new OAuth1(consumerKey, consumerSecret, token, secret);
    // Authentication auth = new BasicAuth(username, password);

    // Create a new BasicClient. By default gzip is enabled.
    Client client = new ClientBuilder()
            .hosts(Constants.STREAM_HOST)
View Full Code Here

Examples of com.twitter.hbc.httpclient.auth.OAuth1

    // Define our endpoint: By default, delimited=length is set (we need this for our processor)
    // and stall warnings are on.
    StatusesSampleEndpoint endpoint = new StatusesSampleEndpoint();
    endpoint.stallWarnings(false);

    Authentication auth = new OAuth1(consumerKey, consumerSecret, token, secret);
    //Authentication auth = new com.twitter.hbc.httpclient.auth.BasicAuth(username, password);

    // Create a new BasicClient. By default gzip is enabled.
    BasicClient client = new ClientBuilder()
            .name("sampleExampleClient")
View Full Code Here

Examples of com.twitter.hbc.httpclient.auth.OAuth1

    // Define our endpoint: By default, delimited=length is set (we need this for our processor)
    // and stall warnings are on.
    StatusesSampleEndpoint endpoint = new StatusesSampleEndpoint();

    Authentication auth = new OAuth1(consumerKey, consumerSecret, token, secret);
    // Authentication auth = new BasicAuth(username, password);

    // Create a new BasicClient. By default gzip is enabled.
    BasicClient client = new ClientBuilder()
      .hosts(Constants.STREAM_HOST)
View Full Code Here

Examples of com.twitter.hbc.httpclient.auth.OAuth1

    List<Long> followings = new ArrayList<Long>();
    followings.add(111111111L);
    followings.add(222222222L);

    SitestreamEndpoint endpoint = new SitestreamEndpoint(followings);
    Authentication auth = new OAuth1(consumerKey, consumerSecret, token, tokenSecret);

    // Create a new BasicClient. By default gzip is enabled.
    BasicClient client = new ClientBuilder()
            .hosts(Constants.SITESTREAM_HOST)
            .endpoint(endpoint)
View Full Code Here

Examples of com.twitter.hbc.httpclient.auth.OAuth1

        List<Long> followingsList = getFollowingsListFromString(followings);
        if (followingsList != null && followingsList.size() > 0) {
            endpoint.followings(followingsList);
        }

        Authentication hosebirdAuth = new OAuth1(
                consumerKey,
                consumerSecret,
                token,
                tokenSecret);
View Full Code Here

Examples of com.twitter.hbc.httpclient.auth.OAuth1

  private OAuth1 authenticate() {

    Properties authenticationProperties = loadAuthenticationProperties();

    return new OAuth1(authenticationProperties.getProperty("consumerKey"),
        authenticationProperties.getProperty("consumerSecret"),
        authenticationProperties.getProperty("token"),
        authenticationProperties.getProperty("secret"));
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth1

          config.getAccessTokenUrl());
    } else {
      config.setAccessTokenUrl(ENDPOINTS
          .get(Constants.OAUTH_ACCESS_TOKEN_URL));
    }
    authenticationStrategy = new OAuth1(config, ENDPOINTS);
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth1

        providerConfig.getRequestTokenUrl());
    ENDPOINTS.put(Constants.OAUTH_AUTHORIZATION_URL,
        providerConfig.getAuthenticationUrl());
    ENDPOINTS.put(Constants.OAUTH_ACCESS_TOKEN_URL,
        providerConfig.getAccessTokenUrl());
    authenticationStrategy = new OAuth1(config, ENDPOINTS);
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth1

          config.getAccessTokenUrl());
    } else {
      config.setAccessTokenUrl(ENDPOINTS
          .get(Constants.OAUTH_ACCESS_TOKEN_URL));
    }
    authenticationStrategy = new OAuth1(config, ENDPOINTS);
    authenticationStrategy.setPermission(scope);
    authenticationStrategy.setScope(getScope());
  }
View Full Code Here

Examples of org.brickred.socialauth.oauthstrategy.OAuth1

          config.getAccessTokenUrl());
    } else {
      config.setAccessTokenUrl(ENDPOINTS
          .get(Constants.OAUTH_ACCESS_TOKEN_URL));
    }
    authenticationStrategy = new OAuth1(config, ENDPOINTS);
  }
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.