3 final class TokenQueryConduitAPIMethod
extends TokenConduitAPIMethod
{
5 public function getAPIMethodName() {
9 public function getMethodDescription() {
10 return pht('Query tokens.');
13 protected function defineParamTypes() {
17 protected function defineReturnType() {
21 protected function execute(ConduitAPIRequest
$request) {
22 $query = id(new PhabricatorTokenQuery())
23 ->setViewer($request->getUser());
25 $tokens = $query->execute();
27 return $this->buildTokenDicts($tokens);