PHP Classes

File: tests/apps/simple.php

Recommend this page to a friend!
  Classes of Cesar D. Rodas   PHP JSON API Server   tests/apps/simple.php   Download  
File: tests/apps/simple.php
Role: Auxiliary script
Content type: text/plain
Description: Example script
Class: PHP JSON API Server
Handle REST API requests with functions in scripts
Author: By
Last change:
Date: 7 years ago
Size: 178 bytes
 

Contents

Class file image Download
<?php

/**
 * @API xxx
 */
function apps(Array $args, $session)
{
    if (empty(
$args['added'])) {
        throw new
RuntimeException;
    }
    return array(
'foo' => 'bar');
}