WooCommerce.NET
WooCommerce.NET copied to clipboard
Invalid URI: The Authority/Host could not be parsed.'
`
static void Main(string[] args)
{
//Woo Commerce
getProducts();
}
private static async void getProducts()
{
RestAPI rest = new RestAPI("http:/kegthat.com/wp-json/wc/v3/", "asdsdadasdasdasdasd", "asdasdadasdasd");
WCObject wc = new WCObject(rest);
rest.Debug = true;
var products = await wc.Product.GetAll();
Console.WriteLine(products);
}
I receive the below error:
System.Exception: 'Expecting state 'Element'.. Encountered 'Text' with name '', namespace ''.
Invalid URI: The Authority/Host could not be parsed.'
Any ideas?