public function find($username)
    {
        $response = $this->search($username);
        foreach ($response->get() as $user) {
            if ($username === $user['username']) {
                return $this->get($user['id']);
            }
        }
        return null;
    }
public function find($username)
    {
        $response = $this->search($username);
        foreach ($response->get() as $user) {
            if ($username === $user['username']) {
                return $this->get($user['id']);
            }
        }
        return null;
    }
public function find ( $ username ) { $ response = $ this -> search ( $ username ) ; foreach ( $ response -> get ( ) as $ user ) { if ( $ username === $ user [ 'username' ] ) { return $ this -> get ( $ user [ 'id' ] ) ; } } return null ; }
Searches for and returns a single user's information. If no results
are found, ``null`` is returned.

@param string $username  A username to search for

@return Response|null
Searches for and returns a single user s information . If no results are found null is returned .