code: def get_server_api(token=None, site=None, cls=None, config=None, **kwargs):
      
      if not cls:
          from binstar_client import Binstar
          cls = Binstar
  
      config = config if config is not None else get_config(site=site)
  
      url = config.get('url', DEFAULT_URL)
  
      logger.info("Using Anaconda API: %s", url)
  
      if token:
          logger.debug("Using token from command line args")
      elif 'BINSTAR_API_TOKEN' in os.environ:
          logger.debug("Using token from environment variable BINSTAR_API_TOKEN")
          token = os.environ['BINSTAR_API_TOKEN']
      elif 'ANACONDA_API_TOKEN' in os.environ:
          logger.debug("Using token from environment variable ANACONDA_API_TOKEN")
          token = os.environ['ANACONDA_API_TOKEN']
      else:
          token = load_token(url)
  
      verify = config.get('ssl_verify', config.get('verify_ssl', True))
  
      return cls(token, domain=url, verify=verify, **kwargs)
docs: Get the anaconda server api class