3 final class UserWhoAmIConduitAPIMethod
extends UserConduitAPIMethod
{
5 public function getAPIMethodName() {
9 public function getMethodDescription() {
10 return pht('Retrieve information about the logged-in user.');
13 protected function defineParamTypes() {
17 protected function defineReturnType() {
18 return 'nonempty dict<string, wild>';
21 public function getRequiredScope() {
22 return self
::SCOPE_ALWAYS
;
25 protected function execute(ConduitAPIRequest
$request) {
26 $person = id(new PhabricatorPeopleQuery())
27 ->setViewer($request->getUser())
28 ->needProfileImage(true)
29 ->withPHIDs(array($request->getUser()->getPHID()))
32 return $this->buildUserInformationDictionary(
35 $with_availability = false);