TestGetDataset_13.php 760 Bytes
<?php

require_once "Base/TestDownloadBase.php";

class TestGetDataset_13 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,
			"gzip"      => 1,
		);
	}

	public function getDescription() {
		return "Get mex-els-all data. Sampling 60s. Compressed result";
	}

	protected function checkResultInfo($info) {
		if (!$info['compressed']) {
			return array(
				'success' => FALSE,
				'message' => 'Result file is not compressed',
			);
		}
		return array(
			'success' => TRUE,
		);
	}
}

?>