The good news is that it is not erring, however... I did not change
anything.
The Bad news is that the email entries are not being deleted. Do I
need to wait 24 hours? Strange...
This is really not a difficult script so w/ no errors in the console I
am not sure what the deal is.
URL feedUrl = new URL("http://www.google.com/m8/feeds/contacts/" +
user +
"/full?xoauth_requestor_id=" + user);
ContactFeed resultFeed = Helpers.retrieveAllContacts
(contactsService, feedUrl); //method to get all the pages
for (ContactEntry entry : resultFeed.getEntries()) {
for (int i=0;
i<entry.getEmailAddresses().size(); i++) {
Email email =
entry.getEmailAddresses().get(i);
if
(email.getAddress().startsWith("AGO")) {
System.out.print("\t" +
email.getAddress() + " Index: " + i +
"\n");
entry.getEmailAddresses().remove(i);
...
I am getting valid email addresses from the System.out and the next
line is the remove.
--
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.