Page MenuHomec4science

ConduitPingConduitAPIMethod.php
No OneTemporary

File Metadata

Created
Mon, Nov 25, 14:02

ConduitPingConduitAPIMethod.php

<?php
final class ConduitPingConduitAPIMethod extends ConduitAPIMethod {
public function getAPIMethodName() {
return 'conduit.ping';
}
public function shouldRequireAuthentication() {
return false;
}
public function getMethodDescription() {
return pht('Basic ping for monitoring or a health-check.');
}
protected function defineParamTypes() {
return array();
}
protected function defineReturnType() {
return 'string';
}
protected function execute(ConduitAPIRequest $request) {
return php_uname('n');
}
}

Event Timeline