From 9f524093007266d77837a210bf4f526568bc5429 Mon Sep 17 00:00:00 2001 From: Derek Antrican Date: Fri, 17 Nov 2023 13:04:41 -0800 Subject: [PATCH] Allow option for ApiRequest to directly return the response object --- ClockworkFramework.Core/Utilities.cs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ClockworkFramework.Core/Utilities.cs b/ClockworkFramework.Core/Utilities.cs index 46e19f9..4fe4170 100644 --- a/ClockworkFramework.Core/Utilities.cs +++ b/ClockworkFramework.Core/Utilities.cs @@ -44,7 +44,7 @@ public static void WriteToConsoleWithColor(object obj, ConsoleColor color) public static string ApiRequest(string url, HttpMethod method, Dictionary headers = null, Dictionary parameters = null, HttpContent content = null) { - return ApiRequest(new ApiRequestParams + var response = ApiRequest(new ApiRequestParams { Url = url, Method = method, @@ -52,9 +52,17 @@ public static string ApiRequest(string url, HttpMethod method, Dictionary