Re: contacts/addAddressbook

Andy Dorman <[email protected]>
Newsgroups gmane.comp.horde.devel
Message-ID <[email protected]>
On 10/27/2015 02:31 AM, Lukas Weiss wrote:
> Hi,
>
> I wanted to create a new address book with the contacts API.
>
> $registry->call(
>      'contacts/addAddressbook',
>      array(
>          'name' => 'New Addressbook'
>      )
> );
>
> With this call, the address book is created, but unfortunately it can't
> be selected by the user.
>
> In  the database, the new address book has no attribute_params (NULL).
> The address books created by the user have attribute_params like this:
>
> a:2:{s:6:"source";s:8:"localsql";s:4:"name";s:23:"5nR0Q0rhlkzNzGn0KhZ8AeI";}
>
>
> By adding this params to the address book created with the API, the
> address book can be selected.
>
> Is this a bug or is there anything i forgot to do?
>
> Thanks!
>

I may be wrong as I have never used the contacts API, but is it possible 
you still need to set the params in turba's backends.local.php?

Read the docs and examples in turba's backends.php file to see how to do it.

-- 
Andy Dorman

-- 
dev mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.