def __init__(self, url, urlSchemes=None):
        '''
        Create a new OEmbedEndpoint object.

        Args:
            url: The url of a provider API (API endpoint).
            urlSchemes: A list of URL schemes for this endpoint.
        '''
        self._urlApi = url
        self._urlSchemes = {}
        self._initRequestHeaders()
        self._urllib = urllib2

        if urlSchemes is not None:
            for urlScheme in urlSchemes:
                self.addUrlScheme(urlScheme)

        self._implicitFormat = self._urlApi.find('{format}') != -1
def __init__ ( self , url , urlSchemes = None ) : self . _urlApi = url self . _urlSchemes = { } self . _initRequestHeaders ( ) self . _urllib = urllib2 if urlSchemes is not None : for urlScheme in urlSchemes : self . addUrlScheme ( urlScheme ) self . _implicitFormat = self . _urlApi . find ( '{format}' ) != - 1
Create a new OEmbedEndpoint object.

        Args:
            url: The url of a provider API (API endpoint).
            urlSchemes: A list of URL schemes for this endpoint.