Source for file test_Services_Compete.php
Documentation is available at test_Services_Compete.php
// PEAR.php seems to have a problem with E_STRICT
require_once 'Services/Compete.php';
define('COMPETE_PERSONAL_KEY', '(your_key)');
$compete->query ('mixi.jp');
$result = $compete->get ();
echo "domain: " . $result->domain . "\n<br />";
echo "trust: " . $result->trust ->val . "\n<br />";
echo "rank: " . $result->traffic ->ranking . "\n<br />";
echo "visitors: " . $result->traffic ->count . "\n<br />";
} catch (Services_Compete_Exception $ex) {
echo 'Error: ' . $ex->getMessage () . "\n";
Documentation generated on Mon, 11 Mar 2019 14:44:54 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|