We are using C# as programming language. When we try to create a contact in 
another user account from “Super Administrator” status user, we are getting 
an exception “Cannot request contacts belonging to another user”. Here is 
the code which we have written :-

RequestSettings settings = new RequestSettings("API Project", 
"[email protected]", "Password"); 

ContactsRequest cr = new ContactsRequest(settings);

Contact ContactObject = new Contact();

ContactObject.Name = new Name() { FullName = "Tarunjit Singh Chhatwal", 
GivenName = "Tarunjit", FamilyName = "Chhatwal", };

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

 

Here “[email protected]” is the user name of a contact with 
“Super 
Administrator” status, and *[email protected]* <[email protected]>is 
the user name of the user in whose contact list we are trying to create 
a contact.

 

Can anyone please let me know where I am getting wrong? Any code snippet 
sharing for this will really helpful.

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to