Skip to content

Commit fb0a423

Browse files
author
Sam Wierema
committed
Also add HLR results to the Lookup example
1 parent 9e08281 commit fb0a423

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/lookup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939
print(' formats.national : %s' % lookup.formats.national)
4040
print(' formats.rfc3966 : %s' % lookup.formats.rfc3966)
4141

42+
if lookup.hlr is not None:
43+
print(' hlr.id : %s' % lookup.hlr.id)
44+
print(' hlr.reference : %s' % lookup.hlr.reference)
45+
print(' hlr.status : %s' % lookup.hlr.status)
46+
print(' hlr.createdDatetime : %s' % lookup.hlr.createdDatetime)
47+
print(' hlr.statusDatetime : %s' % lookup.hlr.statusDatetime)
48+
4249
except messagebird.client.ErrorException as e:
4350
print('\nAn error occured while requesting a Lookup object:\n')
4451

0 commit comments

Comments
 (0)