Hi,
I created a contact with the following code:
ContactEntry ct = new ContactEntry();
ct.setTitle(new PlainTextConstruct("Alice"));
Email email = new Email();
email.setAddress([email protected]);
email.setRel("http://schemas.google.com/g/2005#home");
email.setPrimary(true);
ct.addEmailAddress(email);
URL postUrl = new URL("http://www.google.com/m8/feeds/contacts/default/full");
this.servico.insert(postUrl, ct);
Now, how i edit this primary email? I have started my function:
URL url = new URL("contact url...");
ContactEntry contact = service.getEntry(url, ContactEntry.class);
//
// Here i need to edit the primary email (how?)
//
service.update(url, contact);
===============================
Daniel de Sousa
Site: www.danielsousa.com.br
Email/Msn: [email protected]
Twitter: www.twitter.com/danielsbarros
--
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.