{"id":1533,"date":"2026-01-17T08:22:14","date_gmt":"2026-01-17T08:22:14","guid":{"rendered":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/?p=1533"},"modified":"2026-01-24T06:29:54","modified_gmt":"2026-01-24T06:29:54","slug":"google-calendar-api-usage-scopes","status":"publish","type":"post","link":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/kivicare-google-meet-telemed-woocommerce-addon\/documentation\/integration-reference\/google-calendar-api-usage-scopes\/","title":{"rendered":"Google Calendar API Usage &amp; Scopes"},"content":{"rendered":"<div class=\"nolwrap\">\n<p>This section is intended for <strong>developers and technical users<\/strong> who want to understand how <strong>KiviCare integrates with the Google Calendar API<\/strong> to enable Google Meet\u2013based virtual consultations.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Google Calendar API Endpoint<\/strong><\/h2>\n\n\n\n<p>KiviCare uses <strong>Google Calendar API v3<\/strong> for all calendar and meeting-related operations.<\/p>\n\n\n\n<p><strong>Base API URL:<\/strong><br><code>https:\/\/www.googleapis.com\/calendar\/v3\/<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Required OAuth Scopes<\/strong><\/h2>\n\n\n\n<p>To ensure proper functionality, the following OAuth scope <strong>must be enabled<\/strong> in your Google Cloud Project:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>https:\/\/www.googleapis.com\/auth\/calendar<\/code><\/strong><br>Required to create, update, retrieve, and delete Google Calendar events, including generating Google Meet conference links.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Core API Operations<\/strong><\/h2>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>1. Create Google Calendar Event with Google Meet<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HTTP Method:<\/strong> <code>POST<\/code><\/li>\n\n\n\n<li><strong>Endpoint:<\/strong><br><code>\/calendars\/primary\/events?conferenceDataVersion=1<\/code><\/li>\n\n\n\n<li><strong>Handler Function:<\/strong><br><code>KCGMGoogleMeet::create_meeting()<\/code><\/li>\n\n\n\n<li><strong>Request Payload Includes:<\/strong>\n<ul class=\"wp-block-list\">\n<li><code>summary<\/code> (appointment title)<\/li>\n\n\n\n<li><code>start<\/code> and <code>end<\/code> (appointment time)<\/li>\n\n\n\n<li><code>conferenceData<\/code> (requests creation of a Google Meet link)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>This request automatically generates a Google Meet session and associates it with the appointment.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>2. OAuth 2.0 Token Exchange<\/strong><\/h5>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HTTP Method:<\/strong> <code>POST<\/code><\/li>\n\n\n\n<li><strong>Endpoint:<\/strong><br><code>https:\/\/oauth2.googleapis.com\/token<\/code><\/li>\n\n\n\n<li><strong>Handler Function:<\/strong><br><code>KCGMGoogleMeet::handle_google_meet_authorization_callback()<\/code><\/li>\n\n\n\n<li><strong>Supported Grant Types:<\/strong>\n<ul class=\"wp-block-list\">\n<li><code>authorization_code<\/code> (initial login)<\/li>\n\n\n\n<li><code>refresh_token<\/code> (token renewal)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>This process securely authenticates doctors and maintains continuous API access without repeated user interaction.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\" \/>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>API Quotas &amp; Rate Limiting<\/strong><\/h5>\n\n\n\n<p>Google Cloud enforces usage quotas and rate limits per project.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Default Google API quotas are typically sufficient for most clinics.<\/li>\n\n\n\n<li>KiviCare optimizes API usage by:\n<ul class=\"wp-block-list\">\n<li>Caching access tokens<\/li>\n\n\n\n<li>Automatically refreshing tokens when required<\/li>\n\n\n\n<li>Reducing unnecessary authorization requests<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>This section is intended for developers and technical users who want to understand how KiviCare integrates with the Google Calendar API to enable Google Meet\u2013based virtual consultations. Google Calendar API Endpoint KiviCare uses Google Calendar API v3 for all calendar and meeting-related operations. Base API URL:https:\/\/www.googleapis.com\/calendar\/v3\/ Required OAuth Scopes To ensure proper functionality, the following [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"parent":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-1533","post","type-post","status-publish","format-standard","hentry","category-integration-reference"],"featured_image_src":null,"author_info":{"display_name":"wordpressadminiq","author_link":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/author\/wordpressadminiq\/"},"_links":{"self":[{"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/posts\/1533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/comments?post=1533"}],"version-history":[{"count":5,"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/posts\/1533\/revisions"}],"predecessor-version":[{"id":1604,"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/posts\/1533\/revisions\/1604"}],"wp:attachment":[{"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/media?parent=1533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/categories?post=1533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/documentation.iqonic.design\/kivicare-wordpress\/wp-json\/wp\/v2\/tags?post=1533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}