PHP Classes

File: example_get.php

Recommend this page to a friend!
  Classes of Juan Chaves  >  Simple API REST Class PHP  >  example_get.php  >  Download  
File: example_get.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Simple API REST Class PHP
Process REST API server requests
Author: By
Last change: update
Date: 3 years ago
Size: 576 bytes


Class file image Download
 * this class displays a Simple Api Rest query in json format.
 * @author Juan Chaves,
 * Copyright (C) 2017 Juan Chaves
 * This program is free software; distributed under the artistic license.
if($_SESSION['loggedin']) {
$query = new SimpleApiRestClass();
$query->session_ok = $_SESSION['loggedin'];
$query->query = $_REQUEST['q'];
$query->allows_services = 'get';
$post_query = $query->ReturnLogin();

For more information send a message to info at phpclasses dot org.