code: private String getObtainRequestPath(String requestID, Boolean byResourceID, Boolean byDocID, Boolean idsOnly, String resumptionToken)
      {
          String path = obtainPath;
          
          if (resumptionToken != null)
          {
              path += "?" + resumptionTokenParam + "=" + resumptionToken;
              return path;
          }
          
          if (requestID != null)
          {
              path += "?" + requestIDParam + "=" + requestID;
          }
          else
          {
              // error
              return null;
          }
          
          if (byResourceID)
          {
              path += "&" + byResourceIDParam + "=" + booleanTrueString;
          }
          else
          {
              path += "&" + byResourceIDParam + "=" + booleanFalseString;
          }
          
          if (byDocID)
          {
              path += "&" + byDocIDParam + "=" + booleanTrueString;
          }
          else
          {
              path += "&" + byDocIDParam + "=" + booleanFalseString;
          }
          
          if (idsOnly)
          {
              path += "&" + idsOnlyParam + "=" + booleanTrueString;
          }
          else
          {
              path += "&" + idsOnlyParam + "=" + booleanFalseString;
          }
          
          return path;
      }
docs: Obtain the path used for an obtain request
  
  @param requestID the "request_ID" parameter for the request
  @param byResourceID the "by_resource_ID" parameter for the request
  @param byDocID the "by_doc_ID" parameter for the request
  @param idsOnly the "ids_only" parameter for the request
  @param resumptionToken the "resumption_token" parameter for the request
  @return the string of the path for an obtain request