code: protected HttpUriRequest setupRequest(final String path, final String method, final Map<String, Object> params) {
          final HttpUriRequest request = buildMethod(method, path, params);
          request.addHeader(new BasicHeader("Accept", "application/json"));
          request.addHeader(new BasicHeader("Accept-Charset", "utf-8"));
          request.setHeader(new BasicHeader("Authorization", "Basic " + new String(Base64.encodeBase64((this.token + ":" + this.secret).getBytes()))));
          return request;
      }
docs: Helper method to build the request to the server.
  
  @param path the path.
  @param method the method.
  @param params the parameters.
  @return the request.