Hi Alain,
thank you for your reply!
Now the problem is: how can I remove the <gd:deleted/> tag using Java APIs? 
I managed to retrieve the ContactEntry from the Contacts Feed and to remove 
the "deleted" tag using setDeleted(null), but now I cannot store the 
updated contact, because the update method throws a 
ResourceNotFoundException, even if I set the showdeleted parameter to be 
"true".

Moreover, considering that the ContactEntry I retrieved has no information 
set (aside from id, URLs, etc.), when I call the update method, it should 
erase all the information missing from the ContactEntry, shouldn't it?

Thanks 

Il giorno venerdì 24 febbraio 2012 00:08:52 UTC+1, Alain ha scritto:
>
> Hello Vincenzo,
>
> To "undelete" a contact, simply update the deleted contact by removing its 
> <gd:deleted/> element and by specifying the "showdeleted" query parameter 
> on every requests working with deleted contacts.
> Please note that contacts are permanently deleted after a certain amount 
> of time.
>
> Best,
> Alain
>
> On Tue, Feb 21, 2012 at 6:15 AM, Vincenzo Guerrisi <
> [email protected]> wrote:
>
>> Hi all, 
>> is it possible to retrieve ALL the information related to a deleted 
>> contact using contacts API?
>> At this time I'm able to retrieve only the IDs of a deleted contact by 
>> specifying the "showdeleted" query parameter, but I can't find a way to 
>> restore all the information I've lost. 
>> Since the restore function was introduced into Google Contacts some 
>> months ago, I was wondering if Google supplies some similar capability via 
>> APIs.
>>  
>>
>> -- 
>> 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

Reply via email to