0

I trying to connect UWP app to WooCommerce.

Found this plugin on GitHub

I write my code like this

RestAPI rest = new RestAPI("www.simplegames.com.ua/wp-json/wc/v1/", "ck_f03bbd67e26a96604ddb188dbd63be3d252891ab", " cs_f8583f42dd1d75da832574b7ad6e649a0687f88f");

WCObject wc = new WCObject(rest);
//Get all products
var products = await wc.GetProducts();

Debug.WriteLine(products);

But I have this error:

Error

As I understand it is an authentification problem.

Any thoughts, why?

Customer key and secret are correct

LoicTheAztec
  • 229,944
  • 23
  • 356
  • 399

1 Answers1

0

I have error in permalinks

I found trouble with permalinks, I have this one /shop/%product_cat%/ and changed it to this one /product/sample-product/

And here is code for connecting and get Orders for example

 RestAPI rest = new RestAPI("http://simplegames.com.ua/wp-json/wc/v1/", "ck_9d64c027d2c5f81b8bed3342eeccc6d337be813d", "cs_60697b1e6cbdeb8d62d19e0765e339f8e3334754");


            WCObject wc = new WCObject(rest);
            //Get all orders
            var products = await wc.GetOrders();