Thanks Alan,
I have seen it before to open the discussion.
 
The problem is that you don't know the groupId for 'My Contacts':
 
<entry gd:etag='<var>Etag</var>'> 
  
<id>http://www.google.com/m8/feeds/contacts/<var>userEmail</var>/base/<var>contactId</var></id>
 
  <updated>2008-02-28T18:47:02.303Z</updated> 
  ... 
  <gContact:groupMembershipInfo deleted='false' 
    href='http:
//www.google.com/m8/feeds/groups/<var>userEmail</var>/base/<var>*groupId*
</var>'/> 
</entry> 
 
Infact if you execute the request to have all groups:
 
https://www.google.com/m8/feeds/groups/{userEmail}/full 
you have your groups but not 'My Contacts' groupId.
If  you have an account gmail without groups but only 'My Contacts' and you 
execute:
 
https://www.google.com/m8/feeds/groups/{userEmail}/full 
The response doesn't has the 'My Contacts' groupId.
 
The problem is to have the groupId for 'My Contacts'. How can I find it ?
 
Thanks
Andrea
 
 
 
 

 
 
 
 

Il giorno lunedì 16 aprile 2012 18:59:49 UTC+2, Alain ha scritto:

> Hello, 
>
> This is indeed the correct way to do it as documented here:
>   
> https://developers.google.com/google-apps/contacts/v3/#changing_group_membership
>
> Best,
> Alain
>
> On Fri, Apr 13, 2012 at 2:44 PM, siriemy <[email protected]>wrote:
>
>> Hi,
>> I'm using Http POST to create a new contact, but the contact finish in 
>> 'Other Contacts'.
>> The only solution that I found to insert the contact in 'My Contacts' has 
>> been to add this tag to xml request:
>>  
>>  
>> <gContact:groupMembershipInfo href='
>> http://www.google.com/m8/feeds/groups/[email protected]/base/6'/>
>>
>> I dont' know if it is correct. I have tried it, I didn't find the 
>> solution on Google documentation.
>>
>> Could you help me, please ?
>>
>>  
>>
>> Thanks
>>
>> Andrea
>>  
>>  
>>
>> -- 
>> 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
>>
>
>
>
> -- 
> Alain Vongsouvanh | Developer Programs Engineer
>

-- 
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