Question
Can anyone point me to a step-by-step example which explains how to get started with the Google Contacts API and shows a complete working demo?
Preferably in Java, but it can also be in C#, Python or Ruby.
Goal
All I want to do is to
- load an existing contact,
- add it to a group and
- save the contact back.
Problems
I am pretty much failing on every level.
- Can't get the authentication to work
- Can't find the libraries that contain the classes which are used in the code snippets I found on the Internet
- Can't perform CRUD operations on an existing contact
Example
Here is some pseudo-code of what I am looking for.
import com.google.contacts.*
public class UpdateContactDemo {
public static void main(String args[]) {
GoogleContactsApi g = new GoogleContactsApi("username", "password");
Contact c = g.get("Bob");
c.addGroup("Friends");
g.save(c);
}
}
What I already did
Ok, I googled for tutorials, API examples and everything else I could think of -- and failed. I found a bunch of sources like these:
But non contained an end-to-end example for beginners.