Page MenuHomestyx hydra

TokenQueryConduitAPIMethod.php
No OneTemporary

TokenQueryConduitAPIMethod.php

<?php
final class TokenQueryConduitAPIMethod extends TokenConduitAPIMethod {
public function getAPIMethodName() {
return 'token.query';
}
public function getMethodDescription() {
return pht('Query tokens.');
}
public function defineParamTypes() {
return array();
}
public function defineReturnType() {
return 'list<dict>';
}
public function defineErrorTypes() {
return array();
}
public function execute(ConduitAPIRequest $request) {
$query = id(new PhabricatorTokenQuery())
->setViewer($request->getUser());
$tokens = $query->execute();
return $this->buildTokenDicts($tokens);
}
}

File Metadata

Mime Type
text/x-php
Expires
Tue, May 26, 10:12 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1552211
Default Alt Text
TokenQueryConduitAPIMethod.php (654 B)

Event Timeline