Slack\ApiClient::getAuthedUser PHP Method

getAuthedUser() public method

Gets the currently authenticated user.
public getAuthedUser ( ) : React\Promise\PromiseInterface
return React\Promise\PromiseInterface A promise for the currently authenticated user.
    public function getAuthedUser()
    {
        return $this->apiCall('auth.test')->then(function (Payload $response) {
            return $this->getUserById($response['user_id']);
        });
    }