Answer the question
In order to leave comments, you need to log in
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>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question