Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101299067
ConduitAPI_user_whoami_Method.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 7, 14:25
Size
679 B
Mime Type
text/x-php
Expires
Sun, Feb 9, 14:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24131089
Attached To
rPH Phabricator
ConduitAPI_user_whoami_Method.php
View Options
<?php
/**
* @group conduit
*/
final
class
ConduitAPI_user_whoami_Method
extends
ConduitAPI_user_Method
{
public
function
getMethodDescription
()
{
return
'Retrieve information about the logged-in user.'
;
}
public
function
defineParamTypes
()
{
return
array
(
);
}
public
function
defineReturnType
()
{
return
'nonempty dict<string, wild>'
;
}
public
function
defineErrorTypes
()
{
return
array
(
);
}
public
function
getRequiredScope
()
{
return
PhabricatorOAuthServerScope
::
SCOPE_WHOAMI
;
}
protected
function
execute
(
ConduitAPIRequest
$request
)
{
return
$this
->
buildUserInformationDictionary
(
$request
->
getUser
());
}
}
Event Timeline
Log In to Comment