protected function response($response) {
    // Check for HTTP response error codes.
    if ($this->client->error) {
      $this->onErrorResponse(
        $this->client->errorCode,
        $this->client->errorMessage,
        $response
      );
    }
    else {
      $this->onSuccessfulResponse($response);
    }
    return $response;
  }
protected function response($response) {
    // Check for HTTP response error codes.
    if ($this->client->error) {
      $this->onErrorResponse(
        $this->client->errorCode,
        $this->client->errorMessage,
        $response
      );
    }
    else {
      $this->onSuccessfulResponse($response);
    }
    return $response;
  }
protected function response ( $ response ) { // Check for HTTP response error codes. if ( $ this -> client -> error ) { $ this -> onErrorResponse ( $ this -> client -> errorCode , $ this -> client -> errorMessage , $ response ) ; } else { $ this -> onSuccessfulResponse ( $ response ) ; } return $ response ; }
Preprocess HTTP response.

@param (object) $response Structured object.

@return (object) HTTP Response object.
Preprocess HTTP response .