voipms-python/templates/endpoint.j2

7 lines
198 B
Django/Jinja

class {{class_name}}():
def __init__(self, base):
self.method = "{{endpoint}}"
self.base = base
def fetch(self, params={}):
return self.base.request(self.method)