Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update ContactFactory.php
this updates the request to match the new structure of the title specified in https://developers.google.com/contacts/v3/
  • Loading branch information
basselhossam authored Dec 2, 2018
commit f2af28d94c7a260d52e8b80c79f3021eebb2db16
5 changes: 3 additions & 2 deletions factories/ContactFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,9 @@ public static function create($name, $phoneNumber, $emailAddress, $note, $custom
$entry->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:gd', 'http://schemas.google.com/g/2005');
$doc->appendChild($entry);

$title = $doc->createElement('title', $name);
$entry->appendChild($title);
$nameEntry = $doc->createElement('gd:name');
$nameEntry->appendChild($doc->createElement('gd:givenName', $name));
$entry->appendChild($nameEntry);

$email = $doc->createElement('gd:email');
$email->setAttribute('rel', 'http://schemas.google.com/g/2005#work');
Expand Down