protected function constructUrl($apiUrl, array $params = array())
    {
        return $apiUrl . ((strpos($apiUrl, '?') === false) ? '?' : '&') . http_build_query(array_filter($params));
    }
protected function constructUrl($apiUrl, array $params = array())
    {
        return $apiUrl . ((strpos($apiUrl, '?') === false) ? '?' : '&') . http_build_query(array_filter($params));
    }
protected function constructUrl ( $ apiUrl , array $ params = array ( ) ) { return $ apiUrl . ( ( strpos ( $ apiUrl , '?' ) === false ) ? '?' : '&' ) . http_build_query ( array_filter ( $ params ) ) ; }
Builds a valid Oembed query string based on the given parameters,
Since this method uses the http_build_query function, there is no
need to pass urlencoded parameters, http_build_query already does
this for us.

@param string $apiUrl The Url to the Oembed Api
@param array  $params Parameters for the query string
@return string
Builds a valid Oembed query string based on the given parameters Since this method uses the http_build_query function there is no need to pass urlencoded parameters http_build_query already does this for us .