Good day.

I am writing an application for UWP (C #)

The challenge is to connect to Woocommerce

Found an interesting plugin for UWP

Plugin

My connection code

// RestAPI rest = new RestAPI("http://www.simplegames.com.ua/wc-api/v3/", "ck_f03bbd67e26a96604ddb188dbd63be3d252891ab", "cs_f8583f42dd1d75da832574b7ad6e649a0687f88f"); RestAPI rest = new RestAPI("http://www.simplegames.com.ua/wp-json/wc/v2/" ,"ck_f03bbd67e26a96604ddb188dbd63be3d252891ab", "cs_f8583f42dd1d75da832574b7ad6e649a0687f88f"); WCObject wc = new WCObject(rest); //Get all products var products = await wc.GetOrders(); Debug.WriteLine(products); 

But when you start it gives such an error

enter image description here

Can anyone come across this?

help solve the problem

    1 answer 1

    It is written that the authorization failed (401 error is Unauthorized). Looked here http://woothemes.imtqy.com/woocommerce-rest-api-docs/#authentication ?

    • True? I know the authorization is not logged in yes, looked, Consumer Secret and Comsumer key is generated as you can see from the code - Eugene