protected function getUrl($section, array $uriParams = [])
    {
        $endpoint = rtrim($this->getEndpoint(), '/');
        $section = ltrim($section, '/');
        $params = http_build_query($uriParams);

        if ($params) {
            return sprintf("%s/%s?%s", $endpoint, $section, $params);
        } else {
            return sprintf("%s/%s", $endpoint, $section);
        }
    }