Before I file a bug report I thought I would ask to verify that I am
not missing something.
I am using 2-leg OAuth to access user's MyContacts to clean up some
old email addresses.
for (ContactEntry entry : resultFeed.getEntries()) {
for (int i=0;
i<entry.getEmailAddresses().size(); i++) {
Email email =
entry.getEmailAddresses().get(i);
if
(email.getAddress().startsWith("abc")){
System.out.print("\t" + email.getAddress() + "
Index: " + i
+"\n");
entry.getEmailAddresses().remove(i);
entry.update(); //fails here
}
}
}
Returns:
[email protected] Index: 3
Exception in thread "main" java.lang.RuntimeException:
com.google.gdata.client.authn.oauth.OAuthException: oauth_token does
not exist.
As you can see I have access and can list the email I would like to
remove but the entry.update() is not carrying the OAuth token. I could
delete the whole entry but same error using entry.delete();
System.out.print(entry.getEditLink().getHref());
http://www.google.com/m8/feeds/contacts/user%40example.com/full/67ec7650a6444aa
No OAuth there? Now what?
--
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].
For more options, visit this group at
http://groups.google.com/group/google-contacts-api?hl=.