PHP Classes

File: api.php

Recommend this page to a friend!
  Classes of dav y   Telex   api.php   Download  
File: api.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Telex
Publish and share messages like with Twitter
Author: By
Last change: 911

911
Date: 6 years ago
Size: 348 bytes
 

Contents

Class file image Download
<?php
session_start
();
require(
'boot.php');
///api/App/Mth/a:1,b:2
if($app=get('app')){$mth=get('mth'); $p=get('prm');
    if(
is_numeric($p))$prm['id']=$p; elseif($p)$prm=_jrb($p,1); else $prm=get('p');
    if(
method_exists($app,$mth))echo $app::$mth($prm);}
//api.php?oAuth=xxx&msg=hello
if($oAuth=get('oAuth'))echo tlxcall::post(['oAuth'=>$oAuth]);
?>