public function getVenue(Identifier $identifier)
    {
        $url = $this->getUrl(sprintf('venues/%s', urlencode($identifier)));

        $response = $this->httpClient->get($url, $this->getDefaultHeaders());

        $content = $this->parseResponse($response);

        if (!isset($content->response->venue)) {
            throw InvalidResponseException::invalidResponseBody($response, 'response.venue');
        }

        return $this->venueFactory->create(new Description($content->response->venue));
    }
public function getVenue(Identifier $identifier)
    {
        $url = $this->getUrl(sprintf('venues/%s', urlencode($identifier)));

        $response = $this->httpClient->get($url, $this->getDefaultHeaders());

        $content = $this->parseResponse($response);

        if (!isset($content->response->venue)) {
            throw InvalidResponseException::invalidResponseBody($response, 'response.venue');
        }

        return $this->venueFactory->create(new Description($content->response->venue));
    }
public function getVenue ( Identifier $ identifier ) { $ url = $ this -> getUrl ( sprintf ( 'venues/%s' , urlencode ( $ identifier ) ) ) ; $ response = $ this -> httpClient -> get ( $ url , $ this -> getDefaultHeaders ( ) ) ; $ content = $ this -> parseResponse ( $ response ) ; if ( ! isset ( $ content -> response -> venue ) ) { throw InvalidResponseException :: invalidResponseBody ( $ response , 'response.venue' ) ; } return $ this -> venueFactory -> create ( new Description ( $ content -> response -> venue ) ) ; }
Get a venue by its unique identifier.

@param Identifier $identifier The venue identifier.

@return Venue
Get a venue by its unique identifier .