Hello,
I'm using the following code to insert personal contacts using another
identity (administrator using OAuth2):
Uri contactsUri = new
OAuthUri("http://www.google.com/m8/feeds/contacts/default/full", userID,
domain);
ContactsService contactsService = new
ContactsService(_ApplicationName);
contactsService.RequestFactory = _RequestFactory;
try
{
contactsService.Insert(contactsUri, newEntry); // this
could throw if contact exists
}
catch(Exception exc)
{
// Ignore already exist error.
}
I have 2 problems:
1. Contacts appear in "Other Contacts", not in "My Contacts".
Is there a way to correct this?
2. If i run the code 2 times, it creates duplicates entries and does not
throw an error indicating that the contact already exist.
Is there also a way to avoid duplicates?
Thank you very much for your answers.
--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html