// Initialize the OAuth Signer. 2-Legged OAuth must use HMAC-SHA1, which
// uses the OAuth Consumer Secret to sign the request. The OAuth Consumer
// Secret can be obtained at https://www.google.com/accounts/ManageDomains.
oauthParameters.setOAuthConsumerSecret(variables.getSignatureKey());
OAuthSigner signer = new OAuthHmacSha1Signer();
// Finally create a new GoogleOAuthHelperObject. This is the object you
// will use for all OAuth-related interaction.
GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(signer);