View camera archive list. Stub for archive record page
This commit is contained in:
@@ -29,7 +29,6 @@ class ApiClient
|
||||
{
|
||||
$this->http_client->setOption(CURLOPT_POSTFIELDS, $json);
|
||||
}
|
||||
|
||||
$result = $this->http_client->$method($url);
|
||||
if ($this->http_client->responseCode !== 200)
|
||||
{
|
||||
@@ -44,4 +43,15 @@ class ApiClient
|
||||
return $this->sendRequest('host/getVersion.json');
|
||||
}
|
||||
|
||||
public function getAllEvents($id)
|
||||
{
|
||||
return $this->sendRequest('events/index/MonitorId:'.$id.'.json');
|
||||
}
|
||||
|
||||
public function getEvents($id, $start_time, $page = 1)
|
||||
{
|
||||
return $this->sendRequest('events/index/MonitorId:'.$id.'/'.
|
||||
urlencode('StartTime >=:'.$start_time).'.json?page='.$page);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user