Hi,
I recommend you to check the Java Sample for Contacts:
http://code.google.com/p/gdata-java-client/source/browse/trunk/java/sample/contacts/ContactsExample.java
The printContact method is a good example on how to get all the
information from a contact, for example, it has the following code for
printing email addresses for a Contact Entry:
System.err.println("Email addresses:");
for (Email email : contact.getEmailAddresses()) {
System.err.print(" " + email.getAddress());
if (email.getRel() != null) {
System.err.print(" rel:" + email.getRel());
}
if (email.getLabel() != null) {
System.err.print(" label:" + email.getLabel());
}
if (email.getPrimary()) {
System.err.print(" (primary) ");
}
System.err.print("\n");
}
Cheers,
Julian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---