API access of main functions


interface: http/https
url: passare.ru/direct_query.php?q=
character encoding: UTF8

How to access


  1. connect to the server;
  2. send a query string ending with the zero byte;
  3. receive the response string ending with the zero byte;
  4. close the connection.

List of API accessible functions


List of arguments


Examples of query strings


Examples of implementation


PHP
$query = 'ru_noun;машина;cr;nx';
$response = file_get_contents('http://passare.ru/direct_query.php?q='.$query);
echo $response;
//Output: машин
JavaScript
var query = 'ru_noun;машина;cr;nx'; 
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", 'http://passare.ru/direct_query.php?q='+query, false ); 
xmlHttp.send( null );
console.log(xmlHttp.responseText);
//Output: машин

Function testing