Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104574024
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
Mon, Mar 10, 14:28
Size
641 B
Mime Type
text/x-php
Expires
Wed, Mar 12, 14:28 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24806281
Attached To
rPH Phabricator
ConduitAPI_user_whoami_Method.php
View Options
<?php
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