| 
<?phpsession_start();
 /**
 * this class displays a Simple Api Rest query in json format.
 * @author Juan Chaves, [email protected]
 * Copyright (C) 2017 Juan Chaves
 * This program is free software; distributed under the artistic license.
 */
 //example_get.php?&q=Asus,Iphone
 if($_SESSION['loggedin']) {
 include('./simple_api_rest_class.php');
 //Example
 $query = new SimpleApiRestClass();
 $query->session_ok = $_SESSION['loggedin'];
 $query->query = $_REQUEST['q'];
 $query->allows_services = 'get';
 $post_query = $query->ReturnLogin();
 include('./server.php');
 }
 ?>
 |