/// <summary>
        ///
        /// </summary>
        /// <exception cref="ProWritingAid.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="requestp"></param>
        /// <returns>Task of AsyncResponseSummaryAnalysisResponse</returns>
        public async System.Threading.Tasks.Task <AsyncResponseSummaryAnalysisResponse> PostAsync(SummaryAnalysisRequest requestp)
        {
            ApiResponse <AsyncResponseSummaryAnalysisResponse> localVarResponse = await PostAsyncWithHttpInfo(requestp);

            return(localVarResponse.Data);
        }
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="ProWritingAid.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="requestp"></param>
        /// <returns>Task of ApiResponse (AsyncResponseSummaryAnalysisResponse)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <AsyncResponseSummaryAnalysisResponse> > PostAsyncWithHttpInfo(SummaryAnalysisRequest requestp)
        {
            // verify the required parameter 'requestp' is set
            if (requestp == null)
            {
                throw new ApiException(400, "Missing required parameter 'requestp' when calling SummaryApi->Post");
            }

            var    localVarPath         = "/api/async/summary";
            var    localVarPathParams   = new Dictionary <String, String>();
            var    localVarQueryParams  = new Dictionary <String, String>();
            var    localVarHeaderParams = new Dictionary <String, String>(Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <String, String>();
            var    localVarFileParams   = new Dictionary <String, FileParameter>();
            Object localVarPostBody     = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
                "application/json",
                "text/json",
                "application/x-www-form-urlencoded"
            };
            String localVarHttpContentType = Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json",
                "text/json"
            };
            String localVarHttpHeaderAccept = Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (requestp != null && requestp.GetType() != typeof(byte[]))
            {
                localVarPostBody = Configuration.ApiClient.Serialize(requestp); // http body (model) parameter
            }
            else
            {
                localVarPostBody = requestp; // byte array
            }

            // authentication (licenseCode) required
            if (!String.IsNullOrEmpty(Configuration.GetApiKeyWithPrefix("licenseCode")))
            {
                localVarHeaderParams["licenseCode"] = Configuration.GetApiKeyWithPrefix("licenseCode");
            }

            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                       Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                       localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("Post", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <AsyncResponseSummaryAnalysisResponse>(localVarStatusCode,
                                                                          localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                                                          (AsyncResponseSummaryAnalysisResponse)Configuration.ApiClient.Deserialize(localVarResponse, typeof(AsyncResponseSummaryAnalysisResponse))));
        }
        /// <summary>
        ///
        /// </summary>
        /// <exception cref="ProWritingAid.SDK.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="requestp"></param>
        /// <returns>AsyncResponseSummaryAnalysisResponse</returns>
        public AsyncResponseSummaryAnalysisResponse Post(SummaryAnalysisRequest requestp)
        {
            ApiResponse <AsyncResponseSummaryAnalysisResponse> localVarResponse = PostWithHttpInfo(requestp);

            return(localVarResponse.Data);
        }