def get_all(self, inactive='<STR_LIT>', email_filter='<STR_LIT>', tag='<STR_LIT>', count=<NUM_LIT>, offset=<NUM_LIT:0>):
self._check_values()<EOL>params = '<STR_LIT>' + inactive + '<STR_LIT>' + email_filter +'<STR_LIT>' + tag<EOL>params += '<STR_LIT>' + str(count) + '<STR_LIT>' + str(offset)<EOL>req = Request(<EOL>__POSTMARK_URL__ + '<STR_LIT>' + params,<EOL>None,<EOL>{<EOL>'<STR_LIT>': '<STR_LIT:application/json>',<EOL>'<STR_LIT:Content-Type>': '<STR_LIT:application/json>',<EOL>'<STR_LIT>': self.__api_key,<EOL>'<STR_LIT>': self.__user_agent<EOL>}<EOL>)<EOL>try:<EOL><INDENT>result = urlopen(req)<EOL>with closing(result):<EOL><INDENT>if result.code == <NUM_LIT:200>:<EOL><INDENT>return json.loads(result.read())<EOL><DEDENT>else:<EOL><INDENT>raise PMMailSendException('<STR_LIT>' % (result.code, result.msg))<EOL><DEDENT><DEDENT><DEDENT>except HTTPError as err:<EOL><INDENT>return err<EOL><DEDENT>
Fetches a portion of bounces according to the specified input criteria. The count and offset
parameters are mandatory. You should never retrieve all bounces as that could be excessively
slow for your application. To know how many bounces you have, you need to request a portion
first, usually the first page, and the service will return the count in the TotalCount property
of the response.