This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user