voipms-python/templates/endpoint.j2
2019-08-18 22:02:13 -04:00

7 lines
213 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, params=params)