$service = new CheckAuthService();
$service->check($данные)
$post_data = json_encode($post_data);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Length: ' . strlen($post_data)));
$post_data = http_build_query($post_data);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
die(print_r($_POST))