{
String url = getRequestURL(consumerKey, consumerSecret, callbackURI, scope, permission);
ClientRequest request = new ClientRequest(url);
ClientResponse<String> response = null;
try {
response = request.post(String.class);
if (HttpResponseCodes.SC_OK != response.getStatus()) {
throw new RuntimeException("Request token can not be obtained");
}
// check that we got all tokens
Map<String, String> tokens = getResponse(response);