[Owncloud] Contacts API : how to change contact adressbookid

Thomas Tanghus thomas at tanghus.net
Tue Feb 14 00:28:45 UTC 2012


On Friday 10 February 2012 18:06 Victor Dubiniuk wrote:
> 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?

Something like this?:

https://gitorious.org/owncloud/owncloud/commit/3adaacc0ce8cbbcb070cd06fb52d98e4f590751a

-- 
Med venlig hilsen / Best Regards

Thomas Tanghus


More information about the Owncloud mailing list