This commit is contained in:
2021-08-20 17:16:50 +00:00
parent 96a1c27c44
commit 4d48577479

View File

@@ -137,6 +137,11 @@ namespace AyaNova.PlugIn.V8
}
//
public async static Task<ApiResponse> PostAsync(string route, dynamic d)
{
return await PostAsync(route, d.ToString(Newtonsoft.Json.Formatting.None));
}
public async static Task<ApiResponse> PostAsync(string route, string postJson = null)
{
var requestMessage = new HttpRequestMessage(HttpMethod.Post, ApiBaseUrl + route);
@@ -160,6 +165,10 @@ namespace AyaNova.PlugIn.V8
}
public async static Task<ApiResponse> PutAsync(string route, dynamic d)
{
return await PutAsync(route, d.ToString(Newtonsoft.Json.Formatting.None));
}
public async static Task<ApiResponse> PutAsync(string route, string putJson = null)
{