Hello Rubén, To add a contact to a specific group, simply add a groupMembershipInfo element to this contact:
http://code.google.com/apis/contacts/docs/3.0/developers_guide.html#GroupMembership You will however need to retrieve the user's group list in order to get the group's Atom Id. Also, please use SSL (https) whenever possible! Best, Alain On Tue, Jan 10, 2012 at 8:35 AM, Rubén Sánchez <[email protected]> wrote: > Hi all > > I'm adding contacts, it works fine but it is adding them to another group > called "Other contacts" and not the one "my contact list" > How can I add contact to "my contact list" directly? > > $entryResult = $gdata->insertEntry($doc->saveXML(), ' > http://www.google.com/m8/feeds/contacts/default/full'); > > Thanks in advance > > -- > 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
