Hi everyone!
I have an application to remove the shared contacts in a domain. After
using the API and remove them to reread, I find nothing, which would
be correct. But if you consult the contacts from the user console, I
find some.
The code is in CSharp .NET
Uri feedUri = new Uri(ContactsQuery.CreateContactsUri
(_domain));
RequestSettings rs = new RequestSettings("Test", _admin +
"@" + _domain, _password);
rs.AutoPaging = true;
ContactsRequest cr = new ContactsRequest(rs);
ContactsQuery query = new ContactsQuery(feedUri.ToString
());
Feed<Contact> f = cr.Get<Contact>(query);
if (f.TotalResults > 0)
{
foreach (Contact _con in f.Entries)
{
_con.ContactEntry.Delete();
}
}
Thanks.
Patty.-
--
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.