wooProxy static method

Future wooProxy({
  1. required String path,
  2. String method = 'GET',
  3. Map<String, dynamic>? body,
})

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;
  }
}