wooProxy static method
Calls secureOps Cloud Function to proxy a WooCommerce API call.
Implementation
static Future<dynamic> wooProxy({
required String path,
String method = 'GET',
Map<String, dynamic>? body,
}) async {
try {
return await callSecureOps({
'action': 'wooProxy',
'method': method,
'path': path,
'body': body,
});
} catch (e, st) {
NeomErrorLogger.recordError(e, st, module: 'neom_core', operation: 'wooProxy');
return null;
}
}