protected function handleResponse($response) {
    $json = json_decode($response->content(), TRUE);
    // print_r($json);

    $this->tokenDetails = $json['access']['token'];
    $this->userDetails = $json['access']['user'];
    $this->serviceCatalog = $json['access']['serviceCatalog'];

    return $this;
  }
protected function handleResponse($response) {
    $json = json_decode($response->content(), TRUE);
    // print_r($json);

    $this->tokenDetails = $json['access']['token'];
    $this->userDetails = $json['access']['user'];
    $this->serviceCatalog = $json['access']['serviceCatalog'];

    return $this;
  }
protected function handleResponse ( $ response ) { $ json = json_decode ( $ response -> content ( ) , TRUE ) ; // print_r($json); $ this -> tokenDetails = $ json [ 'access' ] [ 'token' ] ; $ this -> userDetails = $ json [ 'access' ] [ 'user' ] ; $ this -> serviceCatalog = $ json [ 'access' ] [ 'serviceCatalog' ] ; return $ this ; }
Given a response object, populate this object.

This parses the JSON data and parcels out the data to the appropriate
fields.

@param object $response HPCloud::Transport::Response
A response object.

@retval HPCloud::Services::IdentityServices
@return \HPCloud\Services\IdentityServices
$this for the current object so it can be used in chaining.
Given a response object populate this object .