close Warning: Can't synchronize with repository "(default)" (/usr/local/svn/deb2-client does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 4 and Version 5 of WordNetApiPhp


Ignore:
Timestamp:
Mar 25, 2008, 12:08:27 PM (16 years ago)
Author:
Adam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WordNetApiPhp

    v4 v5  
    1515
    1616#initialize, what dictionaries I have access to?
    17 $url = $server.'doc?action=init';
     17$url = $server.'doc?action=connect';
    1818curl_setopt($curl, CURLOPT_URL, $url);
    1919$result = curl_exec($curl);
    2020
    2121$dicts = json_decode($result, true);
    22 foreach($dicts['slovniky'] as $dict_code => $dict_info) {
     22foreach($dicts['dicts'] as $dict_code => $dict_info) {
    2323        #dictionary code + dictionary url
    24         $dict_url = $dict_info['dict'];
     24        $dict_url = $dict_info['code'];
    2525        echo $dict_code.':'.$dict_url."\n";
    2626