Site icon Hip-Hop Website Design and Development

use woocommerce relaxation api for accessing wp multi websites [closed]

I’ve begin to use woo relaxation api to get data on orders and to this point every little thing is nice, i’ve woocommerce on a multisite so there’s an set up of woo on every website, i obtained all order from one website through the use of https://www.cloudways.com/weblog/custom-dashboard-using-woocommerce-php-rest-api/ which is a php libray all good, bellow is the authentication. how am i able to add extra websites and get the outcomes below the identical desk.

how am i able to make $woocommerce = new Consumer be equal to all websites, so no matter data i fetch it comes from all websites

   <?php
   $woocommerce = new Consumer(
  'http://instance.com', // Your retailer URL
     'consumer_key', // Your shopper key
    'consumer_secret', // Your shopper secret
      [
'wp_api' => true, // Enable the WP REST API integration
'version' => 'wc/v3' // WooCommerce WP REST API version
   ]
  );
   ?>