Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions ABNLookupSampleCodePython3/py3sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
#Note, this service requires all parameters to be specified, even if you specify no query parameter
#The parameters specified below will search for an entity with the name 'coles' with postcode '2250'
#In this case, unspecified search parameters all default to 'Y'
#(i.e. will search for the legal & trading name 'coles' in all States and Territories
#(i.e. will search for the legal name 'coles' in all States and Territories
name = 'coles'
postcode = '2250'
legalName = ''
tradingName = ''
legalName = ''
NSW = ''
SA = ''
ACT = ''
Expand All @@ -24,9 +23,8 @@
conn = req.urlopen('https://abr.business.gov.au/abrxmlsearchRPC/AbrXmlSearch.asmx/' +
'ABRSearchByNameSimpleProtocol?name=' + name +
'&postcode=' + postcode + '&legalName=' + legalName +
'&tradingName=' + tradingName + '&NSW=' + NSW +
'&SA=' + SA + '&ACT=' + ACT + '&VIC=' + VIC +
'&WA=' + WA + '&NT=' + NT + '&QLD=' + QLD +
'&NSW=' + NSW + '&SA=' + SA + '&ACT=' + ACT +
'&VIC=' + VIC + '&WA=' + WA + '&NT=' + NT + '&QLD=' + QLD +
'&TAS=' + TAS + '&authenticationGuid=' + authenticationGuid)

#XML is returned by the webservice
Expand Down