$stopwords = array('сервис');
$response = $api->rushapi__create_wordstat_project($hash, $name, $regionid, $collecttype, $pages, $normal, $quotationmark, $exclamation, $minwordstat, $keywords, $stopwords, $swtype, $altfreq);
/* 
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__wordstat_project_status($hash, $sessionid);
print $status;
/*
possible responses are:  status code | additional info (without '')
'1'
'2|status'
'3'
'4|link to xlsx output'
'6'
'7'
for example 
'2|144/700'
'4|http://www.rush-analytics.ru/apioutput.php?type=4&sessionid=a066f37c60d0fc59f90b1ef756b54b1b'
status codes:
1 - in queue
2 - parsing