Created
June 15, 2010 04:48
-
-
Save necronet/438705 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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