[turba] Add Contacts via Script

Jan Schneider jan at horde.org
Wed May 27 07:18:56 UTC 2009


Please keep discussions on the list and don't top-post.

Zitat von David <david at guatcom.net>:

> I was just browsing through the api.php, is there any documentation for
> the api? (other than the comments)

What's wrong with the docs in api.php? You have even complete method  
signatures at the top. If using SOAP, you can read the docs even  
through WSDL.

> Jan Schneider wrote:
>> Zitat von Michael Rubinsky <mrubinsk at horde.org>:
>>
>>>
>>> Quoting Jan Schneider <jan at horde.org>:
>>>
>>>> Zitat von Michael Rubinsky <mrubinsk at horde.org>:
>>>>
>>>>>
>>>>> Quoting David <david at guatcom.net>:
>>>>>
>>>>>> Hello;
>>>>>>
>>>>>> I have a registration form in another part of my site, and would
>>>>>> like to
>>>>>> automatically add new users' information to my address book upon
>>>>>> registration.
>>>>>>
>>>>>> Looking at the mysql tables, it seems pretty straightforward; Is there
>>>>>> any reason I *shouldn't* simply do a mysql insert with the correct
>>>>>> data
>>>>>> into the 'turba_objects' table?
>>>>>>
>>>>>> I read in some other mail that the 'object_id' and 'object_uid' fields
>>>>>> should be unique; Are there any other stipulations or standards for
>>>>>> the
>>>>>> data in these fields I should adhere to?
>>>>>
>>>>>
>>>>> Why not use the turba API to insert the entries? Specifically,
>>>>> _turba_import() in turba/lib/api.php
>>>>
>>>> I guess adding them directly to SQL is simpler. ;-)
>>>> And to answer the OP question, that should work fine.
>>>
>>> Won't that bypass the History stuff? Though I guess that's only an
>>> issue with Syncing?
>>
>> True.
>>
>> Jan.
>>
>>
>> ------------------------------------------------------------------------
>>
>> --
>> Turba mailing list - Join the hunt: http://horde.org/bounties/#turba
>> Frequently Asked Questions: http://horde.org/faq/
>> To unsubscribe, mail: turba-unsubscribe at lists.horde.org
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.horde.org/archives/turba/attachments/20090527/71b04465/attachment.bin>


More information about the turba mailing list