Access google contacts with google client javascript api - how?

I implement the client side only webapp based on google api javascript library. Unfortunately, this library does not support contacts. Or that? Is this an undocumented feature? If not, is there another way to access my contacts? For instance. with outdated gdata api? I already found the answers to this topic in stackoverflow. But not one of them has a clear answer.

+5
source share
3 answers

Since I only need read access, I decided to use jsonp to access contacts. Otherwise, I need to use an additional library that is outdated and an outdated version of api (since the gdata client library does not support api version 3 contacts).

Since I already have an access token, it’s pretty easy to get contact details:

http.jsonp(https://www.google.com/m8/feeds/contacts/someone@gmail.com/full?access_token=xyz&alt=json&callback=JSON_CALLBACK")
  .success(function(data, status, headers, config) { ...})
  .error(function(data, status, headers, config) {...})
+4
source

Does this API provide what you need? It looks like it uses HTTP requests and XML - not really Javascript, but can be executed in Javascript / jQuery with AJAX.

0
source

GData Client Library V3 API, Google API JS Client. GData.

Otherwise, depending on your use case, the Google+ API is compatible with the official JS client and may suit your needs.

0
source

All Articles