1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<?php
require_once ("HTTPBase.php");
class TelephoneVerification extends HTTPBase {
var $server;
var $numservers;
var $API_VERSION;
function TelephoneVerification(){
$this->HTTPBase();
$this->isSecure = 1; // use HTTPS by default
//set the allowed_fields hash
$this->allowed_fields["l"] = 1;
$this->allowed_fields["phone"] = 1;
$this->allowed_fields["verify_code"] = 1;
$this->num_allowed_fields = count($this->allowed_fields);
//set the url of the web service
$this->url = "app/telephone_http";
$this->check_field = "refid";
$this->server = array("www.maxmind.com", "www2.maxmind.com");
$this->numservers = count($this->server);
$this->API_VERSION = 'PHP/1.4';
$this->timeout = 30;
}
}
?>
|