diff --git a/Readme.md b/Readme.md index 4958a63..5c634d2 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" } }); @@ -70,4 +70,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. diff --git a/RestAPI.cs b/RestAPI.cs index 0fdfdb9..64451d9 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)