Skip to content

Instantly share code, notes, and snippets.

@necronet
Created June 15, 2010 04:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save necronet/438705 to your computer and use it in GitHub Desktop.
Save necronet/438705 to your computer and use it in GitHub Desktop.
/*Este codigo esta en start.php*/
<?php
/*La funcion my_echo($string) es la funcion que publicaremos*/
function my_echo($string) {
return $string;
}
/* Exponemos la funcion con el metodo propio del API RESTful de Elgg */
expose_function("test.echo",
"my_echo",
array("string" => array('type' => 'string')),
'A testing method which echos back a string',
'GET',
false,
false
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment