def request(self, url, **opt):
        params = opt
        params['url'] = url
        urlApi = self._urlApi

        if 'format' in params and self._implicitFormat:
            urlApi = self._urlApi.replace('{format}', params['format'])
            del params['format']

        if '?' in urlApi:
            return "%s&%s" % (urlApi, urllib.urlencode(params))
        else:
            return "%s?%s" % (urlApi, urllib.urlencode(params))
Format the input url and optional parameters, and provides the final url
dataset/ETHPy150Open abarmat/python-oembed/oembed/__init__.py/OEmbedEndpoint.request