I'm trying to delete Google contacts using their customer ID as mentioned in Google Contacts API version 3.0. https://developers.google.com/google-apps/contacts/v3/#deleting_contacts
Here is the code after authentication:
$.ajax({
url:"https://www.google.com/m8/feeds/contacts/{emailid}/full/{usercontactId}?access_token=" + token.access_token,
headers: {
"Content-Type": "application/json",
'If-Match': '*',
'Gdata-version': '3.0'
},
dataType: 'jsonp',
data: {},
success: function (output) {
console.log(output)
}
});
I have given the correct "access_token", "emailID" and "usercontactId".
Please let me know the issue in the above code.