protected function request($path)
  {
    $response = $this->client->get($this->url . $path);

    if ( $response->getStatusCode() != 200 )
      throw new \Exception('Bierdopje.com not available');

    $response = $this->xmlToObj($response->getBody());

    return $response;
  }
protected function request($path)
  {
    $response = $this->client->get($this->url . $path);

    if ( $response->getStatusCode() != 200 )
      throw new \Exception('Bierdopje.com not available');

    $response = $this->xmlToObj($response->getBody());

    return $response;
  }
protected function request ( $ path ) { $ response = $ this -> client -> get ( $ this -> url . $ path ) ; if ( $ response -> getStatusCode ( ) != 200 ) throw new \ Exception ( 'Bierdopje.com not available' ) ; $ response = $ this -> xmlToObj ( $ response -> getBody ( ) ) ; return $ response ; }
Make an HTTP request and format the XML resposne

@param $path

@return \SimpleXMLElement
@throws \Exception
Make an HTTP request and format the XML resposne