include 'nusoap/nusoap.php'; // !!! CHANGE THIS !!! ini_set("soap.wsdl_cache_enabled", 0); $wsdl = "http://www.rush-analytics.ru/api.php?wsdl"; $api = new SoapClient($wsdl); $api->response_timeout = 60000; $hash = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; // your 32 characters long API code !!! CHANGE THIS !!! $name = 'test api indexation'; $google_country = '.ru'; $google_lang = 'ru'; $google = 1; $yandex = 1; // array of strings - URLs you want to parse $urls = array('http://www.wilgood.ru', 'http://wilgood.ru/o-kompanii'); $response = $api->rushapi__create_indexation_project($hash, $name, $google, $yandex, $google_country, $google_lang, $urls); /* in variable $response is now either error message or SESSIONID of your newly created project SAVE YOUR SESSIONID for future references to this project (getting status,result file...) ERROR_BAD_USERID - probably bad API key ERROR_IP_NOT_ALLOWED - you have not listed your ip in allowed ips field in your API settings, either leave allowed ips field empty, or add your actual ip ERROR_LOW_BALANCE - you have not enough balance to parse inserted project ERROR_SERVER - error is at our side (please contact us at support@rush-agency.ru */ if (strpos($response, 'ERROR') !== false) { // handle error exit(1); } else { $sessionid = $response; } $status = $api->rushapi__indexation_project_status($hash, $sessionid); print $status;