コード例 #1
0
ファイル: BuzzConnector.java プロジェクト: frisco82/SocialLib
 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());
 }
コード例 #2
0
ファイル: BuzzConnector.java プロジェクト: frisco82/SocialLib
 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());
 }