XiaoFaye / WooCommerce.NET

A .NET Wrapper for WooCommerce/WordPress REST API
MIT License
393 stars 218 forks source link

SystemStatus.GetAll not returning any data #693

Closed hillsydev closed 1 year ago

hillsydev commented 2 years ago

When executing the following call, an empty collection is being returned:

RestAPI rest = new RestAPI(_wooCommUrl, _consumerKey, _secretKey);
WCObject wc = new WCObject(rest);
var systemStatusResult = await wc.SystemStatus.GetAll(null);

There is no error being thrown, only systemStatusResult showing a count of 0.

I've tested the same v3 endpoint in Postman and get a complete system status JSON payload returned as expected.

Not sure if this is something that i'm doing incorrectly or a problem somewhere else. Ideally, I would just like to get the environment information.

I will have to use a raw GET call as a workaround for this one.

XiaoFaye commented 1 year ago

You need to use the Get extension method.

image