Bernd Wurst
Neue API-URL für externe Library
Bernd Wurst commited e99b19d at 2018-01-13 14:02:30
domainRobotApi.php
<?php
class domainRobotDefaultObject {
public function set($key, $value)
{
$this->{$key} = $value;
}
public function get($key)
{
return $this->{$key};
}
}
class domainRobotDefaultRequest extends domainRobotDefaultObject {
private $clientTransactionId;
private $authToken;
public function __construct($authToken)
{
$this->authToken = $authToken;
$this->_generateTransactionId();
}
private function _generateTransactionId()
{
$chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghjklmnpqrstuvwxyz0123456789";
$pass = "";
for($i = 0; $i < 12; $i++) {
$pass .= $chars[mt_rand(0, strlen($chars) - 1)];
}
$this->clientTransactionId = date("YmdHis")."-".$pass;
}
public function overrideTransactionId($id)
{
$this->clientTransactionId = $id;
}
public function getTransactionId()
{
return $this->clientTransactionId;
}
}
class domainRobotContact extends domainRobotDefaultObject {
public $accountId;
public $id;
public $handle;
public $type;
public $name;
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX