private function getUrl($path, $parameters = [])
    {
        $url = sprintf(
            '%s/v%d/%s?client_id=%s&client_secret=%s&v=%s%s',
            $this->configuration->getBasePath(),
            urlencode($this->configuration->getVersion()),
            trim($path, '/'),
            urlencode($this->configuration->getClientId()),
            urlencode($this->configuration->getClientSecret()),
            urlencode($this->configuration->getVersionedDate()),
            $this->parseParameters($parameters)
        );

        return $url;
    }
private function getUrl($path, $parameters = [])
    {
        $url = sprintf(
            '%s/v%d/%s?client_id=%s&client_secret=%s&v=%s%s',
            $this->configuration->getBasePath(),
            urlencode($this->configuration->getVersion()),
            trim($path, '/'),
            urlencode($this->configuration->getClientId()),
            urlencode($this->configuration->getClientSecret()),
            urlencode($this->configuration->getVersionedDate()),
            $this->parseParameters($parameters)
        );

        return $url;
    }
private function getUrl ( $ path , $ parameters = [ ] ) { $ url = sprintf ( '%s/v%d/%s?client_id=%s&client_secret=%s&v=%s%s' , $ this -> configuration -> getBasePath ( ) , urlencode ( $ this -> configuration -> getVersion ( ) ) , trim ( $ path , '/' ) , urlencode ( $ this -> configuration -> getClientId ( ) ) , urlencode ( $ this -> configuration -> getClientSecret ( ) ) , urlencode ( $ this -> configuration -> getVersionedDate ( ) ) , $ this -> parseParameters ( $ parameters ) ) ; return $ url ; }
Get the API url for a given path.

@param string $path The path.
@param array $parameters The query parameters to include.

@return string
Get the API url for a given path .