I found the way, I was appending the group entry to the feed and only
needed to append the id.
so I'm posting it.

    groupinfo = gdata.contacts.data.GroupMembershipInfo(href='',
deleted=False)
    groupinfo.href = group_entry.id.text

    entry.group_membership_info.append(groupinfo)

On 6 mayo, 12:57, Antonio Carranza López <[email protected]>
wrote:
> I'm updating a contact using this python code:
>
> contact_client = gdata.contacts.client.ContactsClient(source=APPL)
> contact_client.ClientLogin(USER, PASS, APPL)
> new_group =
> gdata.contacts.data.GroupEntry(title=atom.data.Title(text='Clientes'))
> cli_group_entry = contact_client.CreateGroup(new_group)
> *entry.group_membership_info.append(cli_group_entry)*
> upd_entry = contact_client.Update(entry)
>
> After doing that my entry looks like contactolog.xml (left side of picture)
> has the group info but not in the right way like the contact in the right
> side of the picture wich have the ns2:groupMemberShipInfo.
>
> <https://lh4.googleusercontent.com/_d-V68U3uo-8/TcPR6wo9AQI/AAAAAAAAAQ...>
> I supose that I'm not using the right method but cant find the right one in
> any doc.
>
> Thanks,

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