Hi Darie, What error do you get? or what does or does not happen? Also, What version of Zen and PHP are you using?
--Julian On Apr 23, 4:58 pm, darie nicolae <[email protected]> wrote: > Hello, > > Ive posted this again because i didnt got any solution. I want to > delete a contact from a specific group using PHP, ive tried some > methods but it didnt worked. > > foreach ($feed->getEntry() as $entry ) { > > if ( $entry->getTitle()->getText() == $contactTitle ) { > > echo $entry->getTitle()->getText(); > > $newExtensionElements = array(); > foreach ( $entry->getExtensionElements() as $extensionElement ) { > $domElement = $extensionElement->getDom(); > if ( !($domElement->tagName == 'groupMembershipInfo' and > $domElement->getAttribute( 'href' ) == $groupId )) { > array_push($newExtensionElements, $extensionElement ); > } > } > $entry->setExtensionElements( $newExtensionElements ); > $entry->save(); > } > > } > > ive tried this but it didnt worked. Can anyone please help me ? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Contacts API" 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://groups.google.com/group/google-contacts-api?hl=en -~----------~----~----~----~------~----~------~--~---
