title: Adding 'sendUpdates' => 'all' to Google Calendar API (PHP)
body: <p>I am trying to modify the below code to add 'sendUpdated' => 'all' so all the attendees receive the email when the event is created or updated. </p>
  
  <pre><code>&lt;?php
  // Exit if accessed directly.
  defined( 'ABSPATH' ) || exit;
  
  /**
   * Google Calendar Synchronization.
   */
  class WC_Appointments_GCal {
  
      const TOKEN_TRANSIENT_TIME = 3500;
  
      const DAYS_OF_WEEK = array(
          1 =&gt; 'monday',
          2 =&gt; 'tuesday',
          3 =&gt; 'wednesday',
          4 =&gt; 'thursday',
          5 =&gt; 'friday',
          6 =&gt; 'saturday',
          7 =&gt; 'sunday',
      );
  
  
  
  .......full code can be found below...
  </code></pre>
  
  <p><strong>Full code</strong>: <a href="https://pastebin.com/PLEwYTZV" rel="nofollow noreferrer">https://pastebin.com/PLEwYTZV</a></p>
  
  <p>(Above code does not belong to me and the reason it is external, because I am not able to paste everything here due to the limit.)</p>
  
  <p>API Documentation: <a href="https://developers.google.com/calendar/v3/reference/events/" rel="nofollow noreferrer">https://developers.google.com/calendar/v3/reference/events/</a></p>