Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoFaye committed Apr 14, 2016
2 parents 8bb1994 + cddbc89 commit 660fb0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" } });
Expand Down Expand Up @@ -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.
2. Supports WooCommerce REST API version 2.
2 changes: 1 addition & 1 deletion RestAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public RestAPI(string url, string key, string secret)//, bool useProxy = false)
/// <typeparam name="T"></typeparam>
/// <param name="endpoint"></param>
/// <param name="method">HEAD, GET, POST, PUT, PATCH, DELETE</param>
/// <param name="requestBody"></param>
/// <param name="requestBody">If your call doesn't have a body, please pass string.Empty, not null.</param>
/// <param name="parms"></param>
/// <returns>json string</returns>
public async Task<string> SendHttpClientRequest<T>(string endpoint, RequestMethod method, T requestBody, Dictionary<string, string> parms = null)
Expand Down

0 comments on commit 660fb0f

Please sign in to comment.