I am implementing a client side only webapp based on the google api javascript library. Unfortunately, this library doesn't support contacts. Or does it? Is it an undocumented feature? If not, is there another working way to access contacts? E.g. with the deprecated gdata api? I already found some answers about this topic on stackoverflow. But none of them have me a clear answer.
Since I need read access only, I decided to use jsonp to access the contacts. Otherwise, I need to use an additional library which is deprecated and a deprecated api version (because the gdata client library doesn't support the contacts api version 3).
Since I have the access token already, it's pretty easy to get contact data:
http.jsonp(https://www.google.com/m8/feeds/contacts/[email protected]/full?access_token=xyz&alt=json&callback=JSON_CALLBACK")
.success(function(data, status, headers, config) { ...})
.error(function(data, status, headers, config) {...})
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With