Re: Managing Turba objects

Luca Bertoncello <[email protected]> Mon, 16 Jul 2018 11:29:40 +0000
Newsgroups gmane.comp.horde.turba
Message-ID <[email protected]>
Zitat von Sebastian Birnbach <[email protected]>:

Hi Sebastian,

> I share your grief with hard-to-get Horde documentation - at large.
> In this case, however, all the information you need seems to be readily
> available:
> https://fossies.org/dox/horde-groupware-5.2.22/classTurba__Api.html
> The fossies server is of course just for showing off the doxygen tool. You
> probably want to start with building your local documentation for whichever
> Horde version you have.

Thank you very much for your answer.

Maybe can you help me again...

I wrote a little test script to retrieve all contacts in an addressbook.
Problem: I can only get some data using:

$results = $registry->call('contacts/listUids', array('sources' =>  
array('wwjt5jzQBHOo8sUGli7BkdQ')));

But so I get a list of UIDs...
Unfortunately, to get the contact data I need the "objectId", not the  
"objectUid", and I didn't found any function to convert it or to  
search the contacts using the UID...
Do you have a suggestion what can I do?

My little code:

$results = $registry->call('contacts/listUids', array('sources' =>  
array('wwjt5jzQBHOo8sUGli7BkdQ')));
foreach($results as $r)
{
   $x = $registry->call('contacts/getContact', array('source' =>  
'wwjt5jzQBHOo8sUGli7BkdQ', 'objectUid' => $r));
}

What works is:

$x = $registry->call('contacts/getContact', array('source' =>  
'wwjt5jzQBHOo8sUGli7BkdQ', 'objectId' => '29dx3S0htUR7YLA6o3cnquN'));

the last parameter is the objectId of the contact, but I can't "find"  
it using the API...

Thanks for your help!
Luca Bertoncello
([email protected])

-- 
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]