code: def _get_record(self, name):
          
          request = self._session.get(self._baseurl, params={'name': name,
                                                             'type': 'A'})
          if not request.ok:
              raise RuntimeError('Failed to search record: %s - %s' %
                                 (self._format_hostname(name), request.json()))
          records = request.json()
          if len(records) == 0:
              return
          record = records[0]
          if 'record' not in record or 'id' not in record['record']:
              raise RuntimeError('Invalid record JSON format: %s - %s' %
                                 (self._format_hostname(name), request.json()))
          return int(record['record']['id'])
docs: Returns the id of a record, if it exists.