code: def set_domain(self, domain='https://api.anaconda.org'):
          
          logger.debug(str((domain)))
          config = binstar_client.utils.get_config()
          config['url'] = domain
          binstar_client.utils.set_config(config)
  
          self._anaconda_client_api = binstar_client.utils.get_server_api(
              token=None, log_level=logging.NOTSET)
  
          return self.user()
docs: Reset current api domain.