Thanks Alain for the response. I did what you told me and it works.
$response = $gdata->performHttpRequest('GET',
'https://www.google.com/m8/feeds/groups/default/full');
$xmlBody = strstr($response,'<?xml');
$xml = simplexml_load_string($xmlBody);
$groupId = $xml->entry[0]->id;
// add group
$group = $doc->createElement('gContact:groupMembershipInfo');
$group->setAttribute('deleted' ,'false');
$group->setAttribute('href' , $groupId);
$entry->appendChild($group);
// insert entry
$entryResult = $gdata->insertEntry($doc->saveXML(),
'http://www.google.com/m8/feeds/contacts/default/full');
--
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