public Organization getOrganization() { return getExtension(Organization.class); } public void setOrganization(Organization org) {
public List<Email> getEmailAddresses() { return getRepeatingExtension(Email.class); }
public void setDeleted() { addExtension(new Deleted()); // Deleted entries cannot be edited further. setCanEdit(false); }
ContactsService myService = null; myService = new ContactsService(accessToken);//add here your access token myService.setAuthSubToken(accessToken);//add here your access token URL feedUrl = new URL("https://www.google.com/m8/feeds/contacts/default/full?max-results=5000"); ContactFeed resultFeed = myService.getFeed(feedUrl, ContactFeed.class); for (int i = 0; i < resultFeed.getEntries().size(); i++) { ContactEntry entry = resultFeed.getEntries().get(i); if (entry.hasName()) { Name name = entry.getName(); if (name.hasFullName()) { String fullNameToDisplay = name.getFullName().getValue(); if (name.getFullName().hasYomi()) { fullNameToDisplay += "(" + name.getFullName().getYomi() + ")"; } System.out.println(fullNameToDisplay); } for (Email email : entry.getEmailAddresses()) { System.out.println(email.getAddress()); } Link photoLink = entry.getContactPhotoLink(); String photoLinkHref = photoLink.getHref(); System.out.println("Photo Link:" + photoLinkHref+"\n"); } } }
public void addEmailAddress(Email email) { getEmailAddresses().add(email); }
/** * Constructs a new ContactEntry by doing a shallow copy of data from an * existing BaseEntry intance. */ public ContactEntry(BaseEntry<?> sourceEntry) { super(sourceEntry); getCategories().add(CONTACT_CATEGORY); }
public void addImAddress(Im im) { getImAddresses().add(im); }
public void addPhoneNumber(PhoneNumber phoneNumber) { getPhoneNumbers().add(phoneNumber); }
public void addPostalAddress(PostalAddress postalAddress) { getPostalAddresses().add(postalAddress); }
public void addLocation(GeoPt geoPt) { getLocations().add(geoPt); }
public void setDeleted() { addExtension(new Deleted()); // Deleted entries cannot be edited further. setCanEdit(false); }
public void addEmailAddress(Email email) { getEmailAddresses().add(email); }
/** * Constructs a new ContactEntry by doing a shallow copy of data from an * existing BaseEntry intance. */ public ContactEntry(BaseEntry<?> sourceEntry) { super(sourceEntry); getCategories().add(CONTACT_CATEGORY); }
public void addImAddress(Im im) { getImAddresses().add(im); }
public void addPhoneNumber(PhoneNumber phoneNumber) { getPhoneNumbers().add(phoneNumber); }
public void addPostalAddress(PostalAddress postalAddress) { getPostalAddresses().add(postalAddress); }
public void addLocation(GeoPt geoPt) { getLocations().add(geoPt); }
public List<PostalAddress> getPostalAddresses() { return getRepeatingExtension(PostalAddress.class); }
public void setDeleted() { addExtension(new Deleted()); // Deleted entries cannot be edited further. setCanEdit(false); }
public void addEmailAddress(Email email) { getEmailAddresses().add(email); }