Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (19 sloc) 598 Bytes
// The path of the XML configuration file required by Mashape:
define("CONFIGURATION_FILEPATH", "./api.xml");
// This is the server key for your component
define("SERVER_KEY", "the-server-key");
class ComponentAPI extends MashapeRestAPI
// Don't edit the constructor code
public function __construct() {
// TODO: Declare your API functions below
public function sayHello($name) {
return "Hello " . $name . "!";
// Init the library
MashapeHandler::handleApi(new ComponentAPI(), SERVER_KEY);