WooCommerce.NET icon indicating copy to clipboard operation
WooCommerce.NET copied to clipboard

Using latest version 0.8.3.0

Open bilpor opened this issue 4 years ago • 4 comments

Following the code example to obtain orders peer page with the following code:

using WooCommerceNET.WooCommerce.v3;
using WooCommerceNET.WooCommerce.v3.Extension;

RestAPI rest = new RestAPI(endpoint, consumerkey, woosecret);
                WCObject wc = new WCObject(rest);

                var order = await wc.Order.GetAll(new Dictionary<string, string>()
                {
                    { "page", "1" },
                    { "per_page", "15" }
                });

Errors with: Unknown WooCommerce Restful API version.

bilpor avatar Jul 27 '21 15:07 bilpor

Hi Can you tell us URL? Seem you are passing wrong url. e.g. URL for v3 should be .. https://youwebapplication.com/wp-json/wc/v3

haseebmukhtar avatar Aug 09 '21 16:08 haseebmukhtar

THe WooCommerce library i am referencing is runtime version v4.0.30319 with a Version 0.8.3.0 The link you have given above cannot be reached. I Installed via the Nuget Package Manager and selected 'WooCommerceNet' by JamesYang@NZ and it says Latest Stable 0.8.3.

bilpor avatar Aug 09 '21 16:08 bilpor

@bilpor How did you pass the endpoint? Can you give a screenshot with sensitive information blur?

XiaoFaye avatar Aug 10 '21 08:08 XiaoFaye

I passed the endpoint in the form "https://mywebsite.com/wp-json/wc/v3/"

bilpor avatar Aug 10 '21 08:08 bilpor