This commit is contained in:
6
util.cs
6
util.cs
@@ -145,7 +145,7 @@ namespace raven_integration
|
||||
return API_BASE_URL.Split("/api/")[0] + route;
|
||||
}
|
||||
|
||||
public async static Task<ApiResponse> GetAsync(string route, string authToken = null, string bodyJsonData = null)
|
||||
public async static Task<ApiResponse> GetAsync(string route, string authToken = null)//, string bodyJsonData = null)
|
||||
{
|
||||
init();
|
||||
|
||||
@@ -153,8 +153,8 @@ namespace raven_integration
|
||||
if (!string.IsNullOrWhiteSpace(authToken))
|
||||
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Bearer", authToken);
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(bodyJsonData))
|
||||
requestMessage.Content = new StringContent(bodyJsonData, System.Text.Encoding.UTF8, "application/json");
|
||||
// if (!string.IsNullOrWhiteSpace(bodyJsonData))
|
||||
// requestMessage.Content = new StringContent(bodyJsonData, System.Text.Encoding.UTF8, "application/json");
|
||||
|
||||
HttpResponseMessage response = await client.SendAsync(requestMessage);
|
||||
var responseAsString = await response.Content.ReadAsStringAsync();
|
||||
|
||||
Reference in New Issue
Block a user