veda-consulting-company / uk.co.vedaconsulting.googlegroup

Other
6 stars 8 forks source link

Batch operations no longer work as of August 12, 2020 #16

Open bhahumanists opened 4 years ago

bhahumanists commented 4 years ago

As per the google notification, the batch endpoints are now disabled

Fix is to:

  1. Update to the latest Google API PHP Client
  2. Update the include paths at the top of googlegroup.php
  3. In civicrm_api3_googlegroup_deletemember and civicrm_api3_googlegroup_subscribe, replace:
    $batch = new Google_Http_Batch($client);
    $service = new Google_Service_Directory($client);

with:

    $service = new Google_Service_Directory($client);
    $batch = new Google_Http_Batch($client, false, null, $service->batchPath);