Stop using legacy Google contacts API

Description

Currently we use the legacy Google contacts API which will be removed soon (see below)

  • https://google.com/m8/feeds/contacts/default/full

All code should be migrated to the people API

Reference:

https://developers.google.com/contacts/v3/announcement

June 15, 2021 - September 15, 2021: 1% of Google Contacts API calls will return errors
September 15, 2021 - December 15, 2021: 10% of Google Contacts API calls will return errors
December 15, 2021, and onward: 100% of Google Contacts API calls will return errors

Zendesk Ticket IDs

None

Activity

Show:

Ben Boyle July 16, 2021 at 7:43 PM

Digging up a small detail that should be handled in its own ticket: get requests in the google backend are not verifying SSL certificates because the integration tests use self signed certs.

verify=False

https://github.com/wazo-platform/wazo-dird/blob/ad0e9f9f02b74a8f567067624d31d77f457984d2/wazo_dird/plugins/google_backend/services.py#L88

Ben Boyle July 16, 2021 at 1:28 PM

Reposting a comment I made on the GitHub PR:

Old group/group-id fetching is no longer needed because of changes to the API.

It is no longer necessary to query for group ID because the function would only search for the 'My Contacts' system group, which has now been assigned to the unchanging contactGroups/myContacts

It is not necessary to request the contacts in the 'My Contacts' system group because I am pretty sure it will always be a subset of the default listing of all 'connections' with people.connections.list.
I posted a question to StackOverflow, and a Google support employee replied that he believes this to be the case, so I think that’s as good as it can get.

Ben Boyle June 10, 2021 at 3:21 PM
Edited

I found this guide:

Done

Details

Priority

Assignee

Reporter

Approvers

Pascal Cadotte

Fix versions

Sprint

Zendesk Support

Created May 20, 2021 at 11:52 AM
Updated August 2, 2021 at 11:52 AM
Resolved July 28, 2021 at 2:45 PM