List of usage examples for twitter4j.conf ConfigurationBuilder setOAuthAccessTokenURL
public ConfigurationBuilder setOAuthAccessTokenURL(String oAuthAccessTokenURL)
From source file:org.structr.web.auth.TwitterAuthClient.java
License:Open Source License
@Override protected void init(final String authorizationLocation, final String tokenLocation, final String clientId, final String clientSecret, final String redirectUri, final Class tokenResponseClass) { super.init(authorizationLocation, tokenLocation, clientId, clientSecret, redirectUri, tokenResponseClass); ConfigurationBuilder cb = new ConfigurationBuilder(); cb.setOAuthAuthorizationURL(authorizationLocation); cb.setOAuthAccessTokenURL(tokenLocation); Configuration conf = cb.build(); TwitterFactory tf = new TwitterFactory(conf); twitter = tf.getInstance();// ww w.ja va2 s . c o m twitter.setOAuthConsumer(clientId, clientSecret); }