code: def query_records(self, name, username, password, query=''):
          ''' Query records '''
          #headers = {'key': username, 'secret': password}
          req = requests.get(self.api_server + '/api/' + name + "/" + query,
                             auth=(username, password))
          return ref query_records(self, name, username, password, query=''):
          ''' Query records '''
          #headers = {'key': username, 'secret': password}
          req = requests.get(self.api_server + '/api/' + name + "/" + query,
                             auth=(username, password))
          return req
docs: Query records