voipms-python/templates/endpoint.j2

7 lines
213 B
Plaintext
Raw Normal View History

class {{class_name}}():
def __init__(self, base):
self.method = "{{endpoint}}"
self.base = base
def fetch(self, params={}):
2019-08-19 02:02:13 +00:00
return self.base.request(self.method, params=params)