code: def query(name, use_kerberos=None, debug=False):
      
      url = '%s/?q=%s' % (CIS_API_URL, name)
      more = True
      out = ChannelList()
      while more:
          reply = _get(url, use_kerberos=use_kerberos, debug=debug)
          try:
              out.extend(map(parse_json, reply[u'results']))
          except KeyError:
              pass
          except TypeError:  # reply is a list
              out.extend(map(parse_json, reply))
              break
          more = 'next' in reply and reply['next'] is not None
          if more:
              url = reply['next']
          else:
              break
      out.sort(key=lambda c: c.name)
      return out
docs: Query the Channel Information System for details on the given
      channel name
  
      Parameters
      ----------
      name : `~gwpy.detector.Channel`, or `str`
          Name of the channel of interest
  
      Returns
      -------
      channel : `~gwpy.detector.Channel`
          Channel with all details as acquired from the CIS