I am sorting contacts from Gmail and creating synchronization with my product. But in my script, it's hard for me to determine which contacts will be deleted from gmail.
Example: If I have John Doe in my application, along with Gmail ... (and they synchronize with gmailId). Later in the future, if a user DELETES a John Doe contact and I started my SYNC , how can I determine that the contact has been deleted?
I need to know where to drop the trigger in order to delete the same contact in my database. Currently, I have this to get information about each contact I sent.
$xml = simplexml_load_string($entry->getXML()); $obj = new stdClass; // EDIT LINK $obj->gmailUrl = rawurlencode($entry->id); $obj->delete = (string) $xml->groupMembershipInfo['deleted']; // FIRST Name $obj->firstName = (string) $xml->name->givenName;
Previous in my code, I also request google with these additional parameters.
$query->setParam('updated-min', $updatedMin); $query->setParam('showdeleted', 'true'); $query->setParam('requirealldeleted', 'true');
Any help would be appreciated!
source share