Hello,

We are trying to use the Contacts API to sync google contacts with our
system.
(Ok this is kinda hard to explain so bear with me.)

We have a design issue when a user has multiple emails of the same
type (work, home, other).
{Also applies to phones, addresses, etc}

How are we to know which email needs to be updated or removed?

We know the position index and email type on our side but do not know
where it came from on the google side.
So if a user has 6 work emails in google and he updates one on our
server. We do not know which one to update.

Ok 1st comment I will get is to update them all, well that would work
but our system only supports a limited amount of emails and google
supports a lot of them.

So google could have say 6 work emails and we support only 3 so we
sync the first 3 found to our system.
Ex:
**Google**   **Our system***
-->Email1    ->Email1
-->Email2    ->Email2
-->Email3    ->Email3
-->Email4
-->Email5
-->Email6

After that the user updates Email2 on our system. How can we know that
we should update slot 2 at google? I have read the documentation but
nothing is said about the order that the emails are returned etc. It
gets worse if the user decides to delete the email, how do you know
which one should go?

We currently get the full contact from the google server 1st, but when
we get to the point where we need to update or remove items well we
are confused.

I hope this all makes some sense. I just want your advice on how we
should handle this situation.
Thanks in advance.
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Contacts API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-contacts-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to