[Owncloud] Contacts API : how to change contact adressbookid
Victor Dubiniuk
victor.dubiniuk at gmail.com
Fri Feb 10 15:06:39 UTC 2012
I'm writing a simple contacts enhancer. It allows to choose multiple
contacts and delete them with a single click.
I want expand it's functionality to move the selected contacts to another
addressbook but it seems there are no API call for that.
The following code produces an error:
$card = OC_Contacts_App::getContactObject( intval($id) );
$card['addressbookid'] = $newBook;
OC_Contacts_VCard::edit( intval($id), $card);
Is there any straightaway API call for the contact adressbookid update?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20120210/5c3241d4/attachment.html>
More information about the Owncloud
mailing list