views:

43

answers:

1

Hi,

I am trying to create a contact on Google Apps. I am using Admin credential to create contact in other users in same domain.

Problem i am facing is when i use:

Uri feedUri  = new Uri(ContactsQuery.CreateContactsUri("default"));
ContactEntry createdEntry = (ContactEntry)service.Insert(feedUri, ContactEntry[0]);

It is adding contact in Admin account but i a want to put contact in other user's account.

How can i do that?

I tried with :

Uri feedUri = new Uri(ContactsQuery.CreateContactsUri("[email protected]"));

But is giving exception: "Execution of request failed".

I am using Google Apps API version 2 for .NET.

Creating service as :

ContactsService obj_ContactService = new ContactsService("");
obj_ContactService.setUserCredentials(userEmail, password); // Admin's Email and Password 

Thanx

A: 

Try with:

Uri feedUri = new Uri(http://www.google.com/m8/feeds/contacts/youruser%40gmail.com/full");
ContactEntry createdEntry = (ContactEntry)service.Insert(feedUri , ContactEntry[0]);
systempuntoout
No it's not working.again showing same error : "Execution of request failed".
Preeti Singh