Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101058474
UserWhoAmIConduitAPIMethod.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
Wed, Feb 5, 07:37
Size
706 B
Mime Type
text/x-php
Expires
Fri, Feb 7, 07:37 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24084122
Attached To
rPH Phabricator
UserWhoAmIConduitAPIMethod.php
View Options
<?php
final
class
UserWhoAmIConduitAPIMethod
extends
UserConduitAPIMethod
{
public
function
getAPIMethodName
()
{
return
'user.whoami'
;
}
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