Ejemplo n.º 1
0
 public ReadableResponse signedCustomRequest(
     String httpMethod, String request, Map<String, String> bodyParams)
     throws NotAuthentifiedException {
   if (!isAuthentified()) throw new NotAuthentifiedException(NETWORK);
   Request requestObj = new Request(Utils.getScribeVerb(httpMethod), request);
   Utils.addBodyParams(requestObj, bodyParams);
   return new ScribeResponseWrapper(requestObj.send());
 }
Ejemplo n.º 2
0
 public ReadableResponse customRequest(
     String httpMethod, String request, Map<String, String> bodyParams) {
   Request requestObj = new Request(Utils.getScribeVerb(httpMethod), request);
   for (Iterator<String> it = bodyParams.keySet().iterator(); it.hasNext(); ) {
     String key = it.next();
     requestObj.addBodyParameter(key, bodyParams.get(key));
   }
   return new ScribeResponseWrapper(requestObj.send());
 }