thanks Alain sir ... i dont know how but now the code is working without 
xoauth_parameter .... 
plz help me to find out the code for updating an contact ... i tried this 
basic code , but getting exception
will you plz correct this if i want to update the email id of a contact

$doc  = new DOMDocument();
$doc->formatOutput = true;
$entry = $doc->createElement('atom:entry');
$entry->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:atom', 
'http://www.w3.org/2005/Atom');
$entry->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:gd', 
'http://schemas.google.com/g/2005');
$doc->appendChild($entry);

$name = $doc->createElement('gd:name');
$entry->appendChild($name);
$fullName = $doc->createElement('gd:fullName', 'Gaurav Tomer');
$name->appendChild($fullName);
$email = $doc->createElement('gd:email'); 
$email->setAttribute('address','[email protected]');
$email->setAttribute('rel' ,'http://schemas.google.com/g/2005#work');
$entry->appendChild($email);       

$editLink = rawurldecode($_GET['id']);         //  
$extra_header = array();
$extra_header['If-Match'] = '*';
$entryResult = $this->gdata->updateEntry($xml, $editLink, null, 
$extra_header);


-- 
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