google-contacts-api

Specifying custom fields for contacts in Google Contacts API v3

ⅰ亾dé卋堺 提交于 2019-12-25 05:13:42
问题 How do I specify custom fields while creating/updating a contact with the API (also retrieving it)? I'm using the Python API. 回答1: import gdata.contacts.data new_contact = gdata.contacts.data.ContactEntry() # Set the contact's name. new_contact.name = gdata.data.Name( given_name=gdata.data.GivenName(text='Elizabeth'), family_name=gdata.data.FamilyName(text='Bennet'), full_name=gdata.data.FullName(text='Elizabeth Bennet') ) # Set user defined fields new_contact.user_defined_field.append( gdata

C# google contact api deleted contact

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 04:54:16
问题 currently I´m writing on a outlook plugin for syncing goolge contacts with outlook but I have to cover some special case: When a contact gets deleted on google side, my application detects the missing contact and creates a new contact based on the contact info from the outlook one. Is there a way to get an event or history from google that tells me a user deleted this contact(s)? Edit 1: Here is my code how I´m accessing the contacts (what is working FINE): public GoogleAccessor() { var

How do you get from Person to ContactEntry

半城伤御伤魂 提交于 2019-12-25 04:14:08
问题 As far as I know it is not possible (yet) to update photos linked to Person (People API), and it is advised to achieve this using the Contact API. But how does one get from Person to ContactEntry? I tried to concatenate Person's resourceName to "https://www.google.com/m8/feeds/contacts/default/full/" but I am getting "ResourceNotFoundException" errors. 回答1: When you get a person with a contact in them, the person will look like: { metadata: { sources: [ { type: PROFILE, id: "12345678" }, {

Google contacts API returns low resolution photos

别来无恙 提交于 2019-12-25 03:55:18
问题 I'm using Google's Data APIs Java library to access contacts and when using the getContactPhotoLink() method I can only get low resolution (96x96) photos. Is there anyway I can get bigger resolution photos? On my Android phone the photos showing up are definitely not 96x96 pixels... Thanks 回答1: It heavily depends on the version of Android. If you have anything under ICS 4.0 then the maximum image size is 96x96. It may look bigger on your phone, but thats because the image is being scaled to

Download link of “Google Contacts API version 3.0” for .NET [closed]

ⅰ亾dé卋堺 提交于 2019-12-25 02:58:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I have 2.0 version of Contacts API. But i am looking for newer version "Contacts API version 3.0" for .NET . Can anyone send me download like for it 回答1: According to the Google Contacts Data API Developer's Guide, you cannot download it because it does not exist. As of today, that page lists the the latest .NET

return google contacts api v3 photo?

痞子三分冷 提交于 2019-12-25 02:18:51
问题 OK I am trying to retrive a photo for each contcat using the google contacts api v3. I've managed to get the photo back but I am unable to decode whatever google is dumping at me. how to i convert this: `����JFIF��� !"$"$ ��``"����A"!12ABQR�#abqr�������$3C���Ss��������0 !1AQ�aq�����"2�����?�MqM!��zfe�@���I �J�K�"�-5�ҥ�UW���8�͚��J���,��nȿ� �%�kM��D?��D��Nj6���i�>���u��D��~ �Zc4�^I�Iw��Tt��e/Tr�(��c����(`��ڪς������)|�e�NN�����G������jH�3�}�pD��U���з��Ί<) ��hW����E�G�y۵�[�i���԰s�c��q�� ��j�X�@,

How to add a contact without a name in GAS?

被刻印的时光 ゝ 提交于 2019-12-25 01:09:32
问题 I have a collection of contact info that I would like to add to Google Contacts via the ContactsApp. Is some cases this info is just an e-mail address without a name. contact = ContactsApp.createContact("tmp1", "tmp2", "email"); The above doesn't seem to accept "" as an argument. Neither do the following: contact.setGivenName("."); contact.setFamilyName(":"); contact.setFullName("*"); I could use " ", but that is not ideal. Is there any way to have the names be "" just like when an e-mail

How to identify a local phone contact and an SYNC phone contact in iphone?

本小妞迷上赌 提交于 2019-12-24 20:44:44
问题 I need google id of the contacts, Is there any way to find the google contact id for my address book contact? I found this answer, which shows it is possible in Android. How can I achieve in iOS?? Please help me to find google id from address book. 回答1: How about trying to visit this document. If my understanding is right, you need this Unified Contacts. Contacts in different accounts that represent the same person may be automatically linked together. Linked contacts are displayed in macOS

Google Contact “Birthday” field not showing when set from Apps Script

本小妞迷上赌 提交于 2019-12-24 18:48:13
问题 I am having a problem in Apps Script setting the Birthday field in a Google Contact. I have a Form with a "User's Date of Birth" field and my code is called upon FormSubmit from the receiving spreadsheet. It looks like this: // h/t @tehhowch for this mapping solution var months = ContactsApp.Month; var monthToEnum = { 1: months.JANUARY, 2: months.FEBRUARY, 3: months.MARCH, ..., 12: months.DECEMBER }; // get the date from the event parameter e var d = new Date(e.namedValues["User's Date of

You do not have permission to call getContacts

被刻印的时光 ゝ 提交于 2019-12-24 16:44:26
问题 I'm developing the GMail Add-on that pulls out all user's contacts to card: var contacts = ContactsApp.getContacts(); I already enabled ContactsAPI in Google API Console and added scope: https://www.googleapis.com/auth/contacts.readonly But the error is still there and the Contacts API is missing in the project's Advanced Google Service pop-up. 回答1: Through trial and error, and this hard-to-find list I managed to get ContactsApp.getContacts() to work. You need to add this scope: "oauthScopes"