I found this when i was reading about REST...<br><br><a href="http://naeblis.cx/rtomayko/2004/12/12/rest-to-my-wife">http://naeblis.cx/rtomayko/2004/12/12/rest-to-my-wife</a><br><br>Maybe you want to explain it to your wife... :)
<br><br>Best Regards<br>Joao Oliveira.<br><br><div><span class="gmail_quote">On 2/28/06, <b class="gmail_sendername">Sergio A. Kessler</b> &lt;<a href="mailto:sergiokessler@gmail.com">sergiokessler@gmail.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">like, look in<br><br><a href="http://developer.yahoo.net/php/">http://developer.yahoo.net/php/
</a><br><br>there are various code samples there...<br><br>basically you don't need a specialized library, good old<br>file_get_contents is your friend ;-)<br>(or you can use the curl extension)<br><br>I'm imagining something like:
<br><br>exporting:<br><a href="http://www.domain.com/api/index.php?action=export_clients&amp;output=csv">www.domain.com/api/index.php?action=export_clients&amp;output=csv</a><br>or<br><a href="http://www.domain.com/api/index.php?action=export_clients&amp;output=xml">
www.domain.com/api/index.php?action=export_clients&amp;output=xml</a><br><br>importing:<br><a href="http://www.domain.com/api/index.php?action=import_client">www.domain.com/api/index.php?action=import_client</a><br><br>this last call should be made by a POST action, passing in the data,
<br>can be made by a simple php script, something like<br><br> foreach line in the source csv_file<br> {<br>&nbsp;&nbsp;&nbsp;&nbsp;$postargs = &lt;fill with the client's data&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;// Get the curl session object<br>&nbsp;&nbsp;&nbsp;&nbsp;$session = curl_init($request);
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;// Set the POST options.<br>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt ($session, CURLOPT_POST, true);<br>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt ($session, CURLOPT_POSTFIELDS, $postargs);<br>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($session, CURLOPT_HEADER, true);<br>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;// Do the POST and then close the session<br>&nbsp;&nbsp;&nbsp;&nbsp;$response = curl_exec($session);<br>&nbsp;&nbsp;&nbsp;&nbsp;curl_close($session);<br><br><br>of course, the folder &quot;api&quot; should be protected wrt security.<br><br>/sak<br>
<br><br>On 2/28/06, Mike Fedyk &lt;<a href="mailto:mfedyk@mikefedyk.com">mfedyk@mikefedyk.com</a>&gt; wrote:<br>&gt; Sergio A. Kessler wrote:<br>&gt;<br>&gt; &gt;On 2/27/06, Mike Fedyk &lt;<a href="mailto:mfedyk@mikefedyk.com">
mfedyk@mikefedyk.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&gt;The focus of the question is how to get data in and out of vtiger using<br>&gt; &gt;&gt;public interfaces from another automated system.&nbsp;&nbsp;I would like to renew
<br>&gt; &gt;&gt;that question.&nbsp;&nbsp;Is SOAP the only and/or best answer in this area?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt;nop.<br>&gt; &gt;SOAP is a complex beast that must die.<br>&gt; &gt;<br>&gt; &gt;you can use REST (web services done right).
<br>&gt; &gt;<br>&gt; &gt;just like yahoo does with php:<br>&gt; &gt;<br>&gt; &gt;<a href="http://developer.yahoo.net/php/">http://developer.yahoo.net/php/</a><br>&gt; &gt;<a href="http://developer.yahoo.net/php/howto-reqRestPhp.html">
http://developer.yahoo.net/php/howto-reqRestPhp.html</a><br>&gt; &gt;<br>&gt; &gt;note that with &quot;output&quot; parameter you can control what you get, ie.<br>&gt; &gt;CSV, XML, txt, whatever.<br>&gt; &gt;<br>&gt; &gt;
<br>&gt; Have any links to php libraries for REST?&nbsp;&nbsp;I'm reading through the<br>&gt; various articles in Wikipedia right now...<br><br>_______________________________________________<br>This <a href="http://vtiger.com">vtiger.com
</a> email is sponsored by: Zoho Writer. Are you still using your desktop word processor for typing documents? Try the AJAX enabled, collaboration-friendly online word processor, Zoho Writer for FREE instead!<br><a href="http://zohowriter.com/?vt">
http://zohowriter.com/?vt</a><br></blockquote></div><br>