header('Content-type:text/html; Charset=utf-8');
date_default_timezone_set('PRC');
class Haikang
{
public $pre_url = "
访问
IP";
protected $app_key = "app_key";
protected $app_secret = "app_secret";
public $time ;f', (floatval($msec) + floatval($sec)) * 1000);
}
function getViewUrl($cameraIndexCode){
this->accept,
"Content-Type:".$this->content_type,
"X-Ca-Key:".$this->app_key,
"X-Ca-Signature:".$sign,
"Date:".$this->time,
"X-Ca-Signature-Headers:"."x-ca-key",
)
);
$result
=
$this->curlPost($this->pre_url.$this->equipment_view_url,json_encode($postData)
,$options);