fernandezpablo85/scribe-java — pull request #225 by devashishmamgain (2012-02-14 18:59:23+00:00)
Title: Enhanced ServiceBuilder to accept properties resource containing oauth properties

Currently all the keys like apiKey, secretKey, etc are hard coded.
I have enhanced the ServiceBuilder class to accept the properties object / property resource name.
All the oauth properties can be declared in the property file.

apiKey = api_key
apiSecret = secret_key
oauth_callback = callback_url
scope = https://www.google.com/m8/feeds/
tokenUrl = https://accounts.google.com/o/oauth2/token

Filed issue here: https://github.com/fernandezpablo85/scribe-java/issues/223

Using this change, we can create OAuthService using properties resource name
OAuthService oAuthService = new ServiceBuilder().provider(GoogleApi20.class)
.propertiesResource("oauth_google.properties")
.build();