1 * http://amda.irap.omp.eu/AMDA/data/WSRESULT/getorbites_ace_xyz_gse_km_20130923T090000_20130924T130000.txt * [status] => done * * @apiErrorExample Error-Response: * {"error":"Cannot find orbit data for ACE1 for 2013-09-23T09:00-2013-09-24T13:00 in km GSE( - )"} */ require_once '../config.php'; if (!key_exists("token", $_GET)) { $result = array('success' => false, 'message' => "Authentication is required for this webservice."); exit(json_encode($result)); } $amda_ws = new WebServer(); if ($amda_ws->getNewToken()['token'] != $_GET["token"]) { $result = array('success' => false, 'status' => 'expired', 'message' => "Token expired. Please authenticate again."); } else { $result = $amda_ws->getOrbites($_GET); } echo json_encode($result); ?>