title: Google Calendar Event Insert call appears to execute but event does not exist
body: <p>Using a service account, I am trying to insert an event in a target user's calendar.  The execution seems to succeed but no event is posted.  This is somewhat similar to the issue at <a href="https://stackoverflow.com/questions/22720387/google-calendar-api-v3-not-creating-event-server-to-server-authentication">Google Calendar API v3 - Not Creating Event (Server-to-Server Authentication)</a> except I'm using the apiclient installed by the composer directive <code>composer require google/apiclient:^2.0</code>.  Thus the use of <code>$client-&gt;setAuthConfig</code> instead of <code>Google_Auth_AssertionsCredentials()</code>.</p>
  
  <p>I've verified that the target user's calendar is set to make changes to events by the service account email (svcacctabc@xyz.iam.gserviceaccount.com), and that the proper service-account-credentials.json file is present.  I've also researched many related entries at Stack Overflow and elsewhere.  The test code is below, any ideas as to what I may be missing?</p>
  
  <pre><code>&lt;?php
  require_once __DIR__ . '/vendor/autoload.php';
  
  $KEY_FILE_LOCATION = __DIR__ . '/service-account-credentials.json';
  $scopes = array('https://www.googleapis.com/auth/calendar', 'https://www.googleapis.com/auth/calendar.readonly');
  
  $client = new Google_Client();
  $client-&gt;setApplicationName("Calendar API Test");
  $client-&gt;setAuthConfig($KEY_FILE_LOCATION);
  $client-&gt;setScopes($scopes);
  $client-&gt;setAccessType('offline');
  
  $service = new Google_Service_Calendar($client);
  $calendarId = 'examplecalendaruser@gmail.com';
  
  $event = new Google_Service_Calendar_Event(array(
    'summary' =&gt; 'Test inserted event',
    'description' =&gt; 'Test inserted description',
    'start' =&gt; array(
      'dateTime' =&gt; '2016-09-02T11:00:00-04:00',
    ),
    'end' =&gt; array(
      'dateTime' =&gt; '2016-09-02T12:00:00-04:00',
    ),
  ));
  
  $calendarId = 'primary';
  $event = $service-&gt;events-&gt;insert($calendarId, $event);
  echo "\nEvent created: " . $event-&gt;htmlLink;
  ?&gt;
  </code></pre>
  
  <p>Note that an event link is created, but browsing it results in a "This event does not exist" message (and no event is displayed on the user calendar).</p>