$normal = 1;
// keyword without adding additional characters (0/1)
$quotationmark = 0;
// "keyword" (0/1)
$exclamation = 1;
// "!keyword"
$minwordstat = 1;
// skip "keyword" and "!keyword" if keyword less than this value
$swtype = 0;
// Stopwords type: 0 - Word accordance, 1 - Letter accordance
$altfreq = 1;
// Consider word order [] (0/1)
// array of strings - keywords you want to parse + stopwords
$keywords = array('wilgood', 'Схема проезда');
$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;