}
private String request(String urlStr, String requestMethod, Map<String, String> postData, boolean useOAuth) {
GenericUrl url = new GenericUrl(urlStr);
// Configure OAuth request params
OAuthParameters params = new OAuthParameters();
params.consumerKey = key;
params.computeNonce();
params.computeTimestamp();
params.signer = signer;
BufferedReader br = null;
try {
// generate the signature
params.computeSignature(requestMethod, url);
// make the request
HttpTransport transport = new NetHttpTransport();
HttpRequestFactory f = null;
if (useOAuth) {