String userUrl = "palacehotelsoftware";
OAuthConsumer consumer = new DefaultOAuthConsumer(
userUrl,
getConsumerSecret());
consumer.setMessageSigner(new PlainTextMessageSigner());
OAuthProvider provider = new DefaultOAuthProvider(
"https://" + userUrl + ".freshbooks.com/oauth/oauth_request.php",
"https://" + userUrl + ".freshbooks.com/oauth/oauth_access.php",
"https://" + userUrl + ".freshbooks.com/oauth/oauth_authorize.php");