P
P
PreFect_Nspace2019-07-17 22:43:59
Google
PreFect_Nspace, 2019-07-17 22:43:59

How to unload all contacts via google contact API, and in response to a request, get the contact's first and last name in separate fields?

How to write a request for google api, and get a file in response with the first and last name fields separately.
In response to a standard query, we get a field and an array with only the field
Both contain the first and last name at the same time. obviously because it's a full name :)
When integrating with CRM, it's important in the contact card to separate these two fields, and keep them in separate fields.
When creating a contact, we can fill in these fields, they are in the same array in the fields:
- // contact name
- // last name
That is, we need to get these fields in response to our request.

<!--  масив который нам нужно получить в ответе -->
<gd:name>
    <gd:givenName>First</gd:givenName>
    <gd:familyName>Last</gd:familyName>
 </gd:name>
<!--  Что получаем по стандартному запросу-->
<gd:name>
    <gd:fullName>First Last</gd:fullName>
 </gd:name>
<!--  И такую штуку получаем(то же) -->
<title>First Last</title>

Google documentation on contacts: https://developers.google.com/contacts/v3/
With a combination of Ctrl + F on sections in the documentation, it will save some of your time
Section on request - getting all contacts: Retrieving all contacts
Section on request - creating a contact in google contacts: Contact Entry

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question