src/API/Users.php
public function authenticatedUser($token = null)
    {
        $token = $this->getToken($token);

        $user = $this->client->get('https://api.twitch.tv/kraken/user?oauth_token=' . $token);

        return $user->json();
    }
public function authenticatedUser($token = null)
    {
        $token = $this->getToken($token);

        $user = $this->client->get('https://api.twitch.tv/kraken/user?oauth_token=' . $token);

        return $user->json();
    }
public function authenticatedUser ( $ token = null ) { $ token = $ this -> getToken ( $ token ) ; $ user = $ this -> client -> get ( 'https://api.twitch.tv/kraken/user?oauth_token=' . $ token ) ; return $ user -> json ( ) ; }
Returns a user object.

Authenticated, required scope: user_read

@param null $token

@return json
Returns a user object .