yes , please have a see .
$entry =
$gdata->composeContact($firstname,$lastname,$note,$email,$phone,$city,$street,$zip,$country,$company,$issendoffer,$gender);//this
is the xml
$client->resetParameters();//remove all request
parameter
$gdataO = new Zend_Gdata($client);//data handler
$gdataO->setMajorProtocolVersion(3);//setversion
if($_GET['act']=='add')
{
$myscope="https://www.google.com/m8/feeds/contacts/default/full";//scope
$header = '';
try
{
$gdataO->performHttpRequest('POST',$myscope,$header,$entry,'application/atom+xml');
echo "<h2>Add successfully</h2>";
}
catch(Exception $e)
{
echo "Can not add contact, maybe the
email is existing $e";
}
}
if($_GET['act']=='edit' && isset($_GET['id']))//the edit
{
$header = array("If-Match: *");
$feed_location =
"https://www.google.com/m8/feeds/contacts/default/full/".$_GET['id'];
//$contact = $gdata->getContactById($id);
$gdataO->performHttpRequest('PUT',$feed_location,$header,$entry,'application/atom+xml');
}
On 3/15/11, Alain <[email protected]> wrote:
> Would you mind sharing a code snippet so I can try to reproduce your issue
> with an environment as close to yours as possible?
> At least, the part that does the update would be perfect :-)!
>
> Thanks,
> Alain
>
> --
> 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
>
--
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