1
votes

If a contact has a public Google+ profile and this data appears in your Google Contacts, is it possible to access that data via Google Apps Script? If so, how?

For example, I add a contact with only a full name and an email address. That contact has a public Google+ profile that includes a phone number. Their phone number will show up in my Google Contacts (including a search from Google Contacts) but the following code will not return their phone number:

var contacts = ContactsApp.getContacts();
for (i in contacts) {
  phones = contacts[i].getPhones();
  for (j in phones) {
    Logger.log(phones[j].getPhoneNumber());
  }
}

How do I access the Google+ phone number via Google Apps Script?

1

1 Answers

0
votes

It is not possible to retrieve this information. At least, not directly via Google Apps Script Contacts Services.

I also think that this should be possible. Please open an enhancement request on Apps Script issue tracker.