Question

For my application I need to import the Gmail Address book, which I am able to do by following "Gmail Contact API".

Recently Gmail added some of the new fields(i.e. Birthday,Website etc) which are not the part of xml. The gmail api docs mention that the new added field is part of XML namespace http://schemas.google.com/contact/2008, but I am unable to figure it out that how to fetch new fields using this name space which I am able to extract.

http://code.google.com/apis/contacts/docs/3.0/reference.html#gContactNamespace

Was it helpful?

Solution

I'm not certain what the problem you are having is. You linked to the page that contains all the information on the new API structure. Everything is the same as before. If you want to fetch these new fields, all you have to do is add the new fields to your calls. Below are all the names of the new fields: alt text http://www.m1cr0sux0r.com/newFields.png

OTHER TIPS

You need to upgrade to the latest version of the client library: Migrate to Google API 3.0

Currently only the Protocol and Java client library have been updated to use the new v3.0 api.

If you're using the Java client, you can use getWhen() on the Birthday: JavaDoc Birthday

When working on the Perl module WWW::Contact::GoogleContactsAPI, I wrote:

my $url = "http://www.google.com/m8/feeds/contacts/default/full"
    . "?max-results=9999&alt=json";
$url .= "&v=3.0"; # Gives more fields

That last line appends "&v=3.0" to the URL, which tells Google to return the extra fields.

You can use this component : http://www.johnvey.com/features/gmailapi/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top