public TwitterServiceProvider(String consumerKey, String consumerSecret) { super(consumerKey, consumerSecret, new OAuth1Template(consumerKey, consumerSecret, "https://api.twitter.com/oauth/request_token", "https://api.twitter.com/oauth/authorize", "https://api.twitter.com/oauth/authenticate", "https://api.twitter.com/oauth/access_token")); }
public DropboxServiceProvider(String consumerKey, String consumerSecret, boolean appFolder) { super(consumerKey, consumerSecret, new OAuth1Template(consumerKey, consumerSecret, "https://api.dropbox.com/1/oauth/request_token", "https://www.dropbox.com/1/oauth/authorize", "https://api.dropbox.com/1/oauth/access_token", OAuth1Version.CORE_10)); this.appFolder = appFolder; }
public TwitterServiceProvider(String consumerKey, String consumerSecret) { super(consumerKey, consumerSecret, new OAuth1Template(consumerKey, consumerSecret, "https://api.twitter.com/oauth/request_token", "https://api.twitter.com/oauth/authorize", "https://api.twitter.com/oauth/authenticate", "https://api.twitter.com/oauth/access_token")); }
/** * Creates an instance of GenericOAuth1ServiceProvider for a provider that offers a separate authentication URL. * @param consumerKey The application's consumer key for the API. * @param consumerSecret The application's consumer secret for the API. * @param requestTokenUrl The API's OAuth 1.0/1.0a request token URL. * @param authorizeUrl The API's OAuth 1.0/1.0a authorization URL. * @param authenticateUrl The API's OAuth 1.0/1.0a authentication URL. If null, then the authorization URL will be used by default. * @param accessTokenUrl The API's OAuth 1.0/1.0a access token URL. * @param oauth1Version The version of OAuth 1 (OAuth 1.0 or OAuth 1.0a) supported by the provider. */ public GenericOAuth1ServiceProvider(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String authenticateUrl, String accessTokenUrl, OAuth1Version oauth1Version) { super(consumerKey, consumerSecret, new OAuth1Template( consumerKey, consumerSecret, requestTokenUrl, authorizeUrl, authenticateUrl != null ? authenticateUrl : authorizeUrl, accessTokenUrl, oauth1Version)); }
/** * Creates an instance of GenericOAuth1ServiceProvider for a provider that offers a separate authentication URL. * @param consumerKey The application's consumer key for the API. * @param consumerSecret The application's consumer secret for the API. * @param requestTokenUrl The API's OAuth 1.0/1.0a request token URL. * @param authorizeUrl The API's OAuth 1.0/1.0a authorization URL. * @param authenticateUrl The API's OAuth 1.0/1.0a authentication URL. If null, then the authorization URL will be used by default. * @param accessTokenUrl The API's OAuth 1.0/1.0a access token URL. * @param oauth1Version The version of OAuth 1 (OAuth 1.0 or OAuth 1.0a) supported by the provider. */ public GenericOAuth1ServiceProvider(String consumerKey, String consumerSecret, String requestTokenUrl, String authorizeUrl, String authenticateUrl, String accessTokenUrl, OAuth1Version oauth1Version) { super(consumerKey, consumerSecret, new OAuth1Template( consumerKey, consumerSecret, requestTokenUrl, authorizeUrl, authenticateUrl != null ? authenticateUrl : authorizeUrl, accessTokenUrl, oauth1Version)); }