. * */ namespace OCP; /** * This class provides functions to manage apps in ownCloud */ class API { /** * registers an api call * @param string $method the http method * @param string $url the url to match * @param callable $action the function to run * @param string $app the id of the app registering the call */ public function register($method, $url, $action, $app){ OC_API::register($method, $url, $action, $app); } }