code: public ApiRequestLogsResult listRequestLogs(DiagnosticsApi.ListRequestLogsOptions options) throws ApiException {
      Object localVarPostBody = "{}";
      
      // create path and map variables
      String localVarPath = "/v2/diagnostics/request_logs".replaceAll("\\{format\\}","json");
  
      // query params
      java.util.List<Pair> localVarQueryParams = new java.util.ArrayList<Pair>();
      java.util.Map<String, String> localVarHeaderParams = new java.util.HashMap<String, String>();
      java.util.Map<String, Object> localVarFormParams = new java.util.HashMap<String, Object>();
  
      if (options != null) {
         localVarQueryParams.addAll(apiClient.parameterToPairs("", "encoding", options.encoding));
      }
      
      
        final String[] localVarAccepts = {
      "application/json"
        };
        final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
  
        final String[] localVarContentTypes = {
      
        };
        final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
  
        String[] localVarAuthNames = new String[] { "docusignAccessCode" }; //{  };
  
          GenericType<ApiRequestLogsResult> localVarReturnType = new GenericType<ApiRequestLogsResult>() {};
          return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
            }
docs: Gets the API request logging log files.
  Retrieves a list of log entries as a JSON or xml object or as a zip file containing the entries.  If the Accept header is set to application/zip, the response is a zip file containing individual text files, each representing an API request.  If the Accept header is set to &#x60;application/json&#x60; or &#x60;application/xml&#x60;, the response returns list of log entries in either JSON or XML. An example JSON response body is shown below.
  @param options for modifying the method behavior.
  @return ApiRequestLogsResult
  @throws ApiException if fails to make API call