I'm using Contacts API to get the list of all the contacts in the domain to give the suggestions to the user.
I'm using "https://www.google.com/m8/feeds/contacts/example.com/full" as URL. Got the errot saying "Only administrators can request entries belonging to example".
How to get the list of Domain contacts using API ?. I'm able to access the contacts from browser using this url "https://www.google.com/contacts/?hl=en&tab=wC#contacts/group/27/Directory".
please help......!!!
EDIT 1(With Jay reference):
My code is:
service.setHeader("GData-Version", "1.0");
ContactFeed contactEntry= service.getFeed(new URL("https://www.google.com/m8/feeds/gal/example.com/full?alt=json&q=mail@example.com"), ContactFeed.class);
This worked for me.
$.ajax({
type : "GET",
url: "https://www.google.com/m8/feeds/gal/domain.com/full",
data: {
alt: "json",
q:query,
access_token:access_token,
'max-results':10
},
success: function(data)
{
}
});