Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ContactsService service = new ContactsService("OScar");
- if (userName == null || password == null) {
- return new ArrayList<Member>();
- }
- service.setUserCredentials(userName, password);
- List<Member> members = new ArrayList<Member>();
- // Request the feed
- URL feedUrl = new URL("https://www.google.com/m8/feeds/contacts/default/full");
- ContactFeed resultFeed = service.getFeed(feedUrl, ContactFeed.class);
- // Print the results
- System.out.println(resultFeed.getTitle().getPlainText());
- for (ContactEntry entry : resultFeed.getEntries()) {}
Advertisement
Add Comment
Please, Sign In to add comment