I have been wrestling here to get the google contacts, I get the user personal information, but unable to get the user's contacts. getting following error: 401 (Authorization required)
https://www.google.com/m8/feeds/contacts/xyz@gmail.com/full?oauthtoken=[object%20Object]&callback=jQuery162xxxxxxxxxx_13xxxxxxxxxx2&_=13xxxxxx.
$.ajax({
url: "https://www.google.com/m8/feeds/contacts/default/full",
dataType: "jsonp",
headers: "GData-Version: 3.0",
data:{accessToken: authResult },
success: function (data) {
console.log("json"+JSON.stringify(data));
}
});