def _make_url(self, endpoint, **kwargs):
        endpoint = "{}/{}/{}".format(self._baseurl, self._version, endpoint)

        extra = []
        for key, value in kwargs.items():
            if isinstance(value, list):
                value = ','.join(value)
            extra.append("{}={}".format(key, value))

        if len(extra) > 0:
            endpoint = '?'.join([endpoint, '&'.join(extra)])

        return endpoint
Internal method to create a url from an endpoint.
dataset/ETHPy150Open dhhagan/py-openaq/openaq/__init__.py/API._make_url