src/Northstar.php
public function getUser($type, $id)
    {
        $response = $this->get('v1/users/'.$type.'/'.$id);

        if (is_null($response)) {
            return null;
        }

        return new NorthstarUser($response['data']);
    }
public function getUser($type, $id)
    {
        $response = $this->get('v1/users/'.$type.'/'.$id);

        if (is_null($response)) {
            return null;
        }

        return new NorthstarUser($response['data']);
    }
public function getUser ( $ type , $ id ) { $ response = $ this -> get ( 'v1/users/' . $ type . '/' . $ id ) ; if ( is_null ( $ response ) ) { return null ; } return new NorthstarUser ( $ response [ 'data' ] ) ; }
Send a GET request to return a user with that id.

@param string $type - 'id', 'email', 'mobile'
@param string $id - ID, email, id, phone
@return NorthstarUser
Send a GET request to return a user with that id .