TestGetDataset_14.php
764 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
require_once "Base/TestDownloadBase.php";
class TestGetDataset_14 extends TestDownloadBase
{
public function getAPI() {
return "getDataset";
}
protected function needRESTAuth() {
return TRUE;
}
public function getParams() {
return array(
"startTime" => "2008-01-01T00:00:00",
"stopTime" => "2008-01-01T01:00:00",
"datasetID" => "mex-els-all",
"sampling" => 60,
"outputFormat" => "VOTable",
);
}
public function getDescription() {
return "Get mex-els-all data. Sampling 60s. VOTable";
}
protected function checkResultInfo($info) {
if (!$info['isVOTable']) {
return array(
'success' => FALSE,
'message' => 'Result file not in VOTable format',
);
}
return array(
'success' => TRUE,
);
}
}
?>