def url ( self , action , * * kwargs ) : # TODO : should be static method ? return self . URLS [ 'BASE' ] % self . URLS [ action ] % kwargs
build a url in python using kwargs
Construct and return the URL for a specific API service .
def url(self, action, **kwargs):
        """ Construct and return the URL for a specific API service. """
        # TODO : should be static method ?
        return self.URLS['BASE'] % self.URLS[action] % kwargs