KiviCare Google meet telemed & woocommerce (Addon)
Integration Reference

Database Mapping Table

The KiviCare Google Meet Addon uses a dedicated database table to maintain a reliable connection between WordPress appointments and Google Meet events. This local mapping minimizes unnecessary API calls by securely caching Google Calendar event details.


Table Name: wp_kc_appointment_google_meet_mappings

This table stores Google Meet information associated with each KiviCare appointment.

Column NameData TypeDescription
idINTPrimary key (auto-increment).
appointment_idINTUnique ID of the KiviCare appointment.
event_idVARCHARUnique event ID generated by Google Calendar.
urlVARCHARGoogle Meet meeting URL (hangoutLink).
passwordVARCHARReserved for compatibility (not commonly used by Google Meet).
event_urlVARCHARDirect link to the event in Google Calendar’s web interface.

Programmatic Data Access

Developers can retrieve Google Meet mapping data using the
KCGMAppointmentGoogleMeetMapping model.

JAVASCRIPT
use KCGMApp\models\KCGMAppointmentGoogleMeetMapping;

// Retrieve Google Meet mapping for a specific appointment
$mapping = KCGMAppointmentGoogleMeetMapping::where('appointment_id', $id)->first();

if ($mapping) {
    echo 'Google Meet URL: ' . $mapping->url;
}

This approach allows seamless access to meeting links for custom workflows or integrations.


Automatic Data Cleanup

When an appointment is deleted from KiviCare, the addon automatically:

  1. Cancels the corresponding Google Calendar event using the stored event_id.
  2. Removes the related entry from the mapping table to keep the database clean.

This ensures data consistency between WordPress and Google Calendar at all times.

Suggestions & Improvements

Your email address will not be published. Required fields are marked *