[turba] Add Contacts via Script

Ben Klang ben at alkaloid.net
Wed May 27 12:29:42 UTC 2009


On May 27, 2009, at 3:18 AM, Jan Schneider wrote:

> 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)
>

You might try the following pages for some information on using the API:

Via XML-RPC:
http://wiki.horde.org/XmlRpcPythonHowTo

Via SOAP:
http://wiki.horde.org/WSDLHowTo
http://wiki.horde.org/Doc/Dev/SOAP

Via PHP:
http://rubinskyfamily.com/mike/65/

Regards,
/BAK/

>
>> 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/
> --
> 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

-- 
Ben Klang
Alkaloid Networks LLC
ben at alkaloid.net
404.475.4850
http://projects.alkaloid.net



More information about the turba mailing list