php-ews
php-ews copied to clipboard
Add Picture to Contact
Hello, how can I add a Picture to a new Contact?
$api->createContacts(array(
'GivenName' => $contact['Vorname'],
'Surname' => $contact['Nachname'],
'EmailAddresses' => array(
'Entry' => array('Key' => \garethp\ews\API\Enumeration\EmailAddressKeyType::EMAIL_ADDRESS_1, '_value' => $contact['Email'])
),
//Creating multiple entries
'PhoneNumbers' => array(
'Entry' => array(
array('Key' => \garethp\ews\API\Enumeration\PhoneNumberKeyType::BUSINESS_PHONE, '_value' => $contact['Telefon']),
array('Key' => \garethp\ews\API\Enumeration\PhoneNumberKeyType::MOBILE_PHONE, '_value' => $contact['Mobil']),
array('Key' => \garethp\ews\API\Enumeration\PhoneNumberKeyType::BUSINESS_FAX, '_value' => $contact['Fax']),
)
),), array(
'SavedItemFolderId' => $folderID,
));`
Works perfectly, except I have no clue on how to add a picture. I found these 3 `
- @method boolean isHasPicture()
- @method boolean getHasPicture()
- @method ContactItemType setHasPicture(boolean $hasPicture)`
but I'm unsure if I'm on the right track or even how to use them.
Thank you very much. Shaeldon
There's no way yet, since it's a new feature in the latest WSDL and I haven't incorporated it yet. I'll go ahead and try to put it in in the next month or so
Much appriciated