Leon
Leon

Reputation: 354

Google People API: Any relation between Metadata and resourceName on a Person object

When use new Google People API to get a Person object, is there a relation between Person.Metadata.Sources[0].id and Person.ResouceName? like the resouceName is calculated from the Person.Metadata.Sources[0].id

The reason why I asked this is in the old Google Contacts API, we store the contact URL like https://www.google.com/m8/feeds/contacts/[email]/full/3c8fcc428ca19658 which I noticed the suffix string 3c8fcc428ca19658 is the same as the Person.Metadata.Sources[0].id in new Google People API, so we can easily know the old URL match which resouceName?

enter image description here

Upvotes: 0

Views: 426

Answers (1)

marmor
marmor

Reputation: 28229

Yes, you can calculate a resourceName from a contact-ID but it's not documented and cannot be trusted to work, however a Google engineer privately guaranteed this should work in the next month.

See original answer here: https://stackoverflow.com/a/46355535/819355 and discussion in comments here: Is there any way to get Google People API resource ID from Google Contacts contact Id?

Upvotes: 2

Related Questions