'Return a list of zones.
:return: ``list`` of :class:`Zone`
For more info, please see:
https://www.worldwidedns.net/dns_api_protocol_list.asp
or
https://www.worldwidedns.net/dns_api_protocol_list_reseller.asp'

def list_zones(self):

    action = '/api_dns_list.asp'
    if (self.reseller_id is not None):
        action = '/api_dns_list_reseller.asp'
    zones = self.connection.request(action)
    if (len(zones.body) == 0):
        return []
    else:
        return self._to_zones(zones.body)
