I would like to get the (future only) booking with details like zoom URL and registered participants email.
The (corvid) WIX-Bookings API doesn’t have a function for this, so instead I tried a wix-data query. However, it only returns the schedule and no details. Like so:
import wixData from 'wix-data';
$w.onReady(function () {
wixData.query("Bookings/Schedule")
.find()
.then( (results) => {
if(results.items.length > 0) {
let firstItem = results.items[0]; //see item below
console.log(results.items)
} else {
// handle case where no matching items found
}
} )
.catch( (err) => {
let errorMsg = err;
} );
});
Where is the data for the registered participants for the booking, and what’s the best way to retrieve it? (I only want to see future bookings)
Note: If the zoom plugin for WIX was actually making a zoom registration entry, then I could just pull from zoom. However, all the zoom plugin does is create a meeting and email the link; it does not register the participants so there is no record in zoom.
Also Note: if the REST API (not corvid) would support a query filter, I would just use that. The basic API pulls all bookings, but cannot be filtered for future bookings. (the documentation says you should be able to, but it just doesn’t work)
Thanks for any pointers,
-Steve