Nope that is not it.
I am not having a problem authenticating to the service, I do get a
list of emails I want to delete but can't update.


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");
//I get a list of emails here.
                                                entry.getEmailAddresses
().remove(i);
                                                entry.update();   //
fails here
                             ...
// It fails on the update w/ (oauth_token does not exist)

Just to be sure:
System.out.println(entry.getEmailAddresses().get(i).getAddress());
gives me the right email to remove at location i

entry.update() does not take any other arguments so I can't manually
feed it. I am having the exact same problem with the Docs-list API
trying to update ACLs so I hope there is a simple fix. Could someone
please verify that I am not crazy please!

--

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