Created
September 26, 2010 16:20
-
-
Save copyninja/598071 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final String CONSUMER_KEY = "Your consumer key"; | |
private static final String CONSUMER_SECRET = "Your consumer secret"; | |
private static String ACCESS_KEY = null; | |
private static String ACCESS_SECRET = null; | |
private static final String REQUEST_URL = "http://twitter.com/oauth/request_token"; | |
private static final String ACCESS_TOKEN_URL = "http://twitter.com/oauth/access_token"; | |
private static final String AUTH_URL = "http://twitter.com/oauth/authorize"; | |
private static final String CALLBACK_URL = "OauthTwitter://twitt"; | |
private static final String PREFERENCE_FILE = "twitter_oauth.prefs"; | |
private static CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer( | |
CONSUMER_KEY, CONSUMER_SECRET); | |
private static CommonsHttpOAuthProvider provider = new CommonsHttpOAuthProvider( | |
REQUEST_URL, ACCESS_TOKEN_URL, AUTH_URL); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment