OAuthConsumer consumer = tokenHolder.createConsumer();
consumer.setAdditionalParameters(oauthParams);
consumer.sign(request);
response = client.execute(request);
int statusCode = response.getStatusLine().getStatusCode();
HttpEntity entity = response.getEntity();
byte[] content = entity != null ? readBytes(entity.getContent()) : new byte[0];
switch (statusCode) {
case 200:
case 204:
// all is well, return
return content;