pickles/classes/API/AYAH.php
Josh Sherman 0cbc1df48f Added AreYouAHuman.com integration
Includes AYAH v1.1.7, a static wrapper class and an update to our main include file to handle loading the official AYAH library from the vendors directory.
2013-12-23 19:11:01 -05:00

34 lines
539 B
PHP

<?php
class API_AYAH extends API_Common
{
public static function getHTML()
{
$config = Config::getInstance();
if (!$config->api['ayah'])
{
throw new Exception('Missing API configuration.');
}
$ayah = new AYAH($config->api['ayah']);
return $ayah->getPublisherHTML();
}
public static function isHuman()
{
$config = Config::getInstance();
if (!$config->api['ayah'])
{
throw new Exception('Missing API configuration.');
}
$ayah = new AYAH($config->api['ayah']);
return $ayah->scoreResult();
}
}
?>