Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def hlr(self, id):
"""Retrieve the information of a specific HLR lookup."""
return HLR().load(self.request('hlr/' + str(id)))
def hlr(self, value):
self._hlr = HLR().load(value)
def lookup_hlr_create(self, phonenumber, params=None):
"""Perform a new HLR lookup."""
if params is None:
params = {}
return HLR().load(self.request('lookup/' + str(phonenumber) + '/hlr', 'POST', params))
def lookup_hlr(self, phonenumber, params=None):
"""Retrieve the information of a specific HLR lookup."""
if params is None:
params = {}
return HLR().load(self.request('lookup/' + str(phonenumber) + '/hlr', 'GET', params))
def hlr_create(self, msisdn, reference):
"""Perform a new HLR lookup."""
return HLR().load(self.request('hlr', 'POST', {'msisdn': msisdn, 'reference': reference}))