From 67f457e917b7d62dfb3c234226ee14cf07ce4e30 Mon Sep 17 00:00:00 2001 From: XiaoFaye Date: Sun, 10 Apr 2016 16:15:51 +1200 Subject: [PATCH 1/2] Update Readme.md --- Readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index 8c1c285..ea26b10 100644 --- a/Readme.md +++ b/Readme.md @@ -32,7 +32,7 @@ Product p = new Product() description = "test product 8", price = 8.0M }; -await wc.PostProduct(p) +await wc.PostProduct(p); //Update products await wc.UpdateProducts(new Product[] { new Product { id = 128, name = "test 99" } }); @@ -68,4 +68,4 @@ Version History 3. Implement Order Refund call. * v0.1 First working version 1. Implement only GET method for most REST API calls. - 2. Supports WooCommerce REST API version 2. \ No newline at end of file + 2. Supports WooCommerce REST API version 2. From cddbc89443fd0d61571442c3b334872300122e55 Mon Sep 17 00:00:00 2001 From: XiaoFaye Date: Sun, 10 Apr 2016 21:22:18 +1200 Subject: [PATCH 2/2] Update RestAPI.cs --- RestAPI.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RestAPI.cs b/RestAPI.cs index c588e63..51065d8 100644 --- a/RestAPI.cs +++ b/RestAPI.cs @@ -35,7 +35,7 @@ public RestAPI(string url, string key, string secret)//, bool useProxy = false) /// /// /// HEAD, GET, POST, PUT, PATCH, DELETE - /// + /// If your call doesn't have a body, please pass string.Empty, not null. /// /// json string public async Task SendHttpClientRequest(string endpoint, RequestMethod method, T requestBody, Dictionary parms = null)