private static void GetSitesIdFromSiteUrl() { var siteManager = new SitesManager(); siteManager.setTokenAuth("XYZ"); var sites = siteManager.getSitesIdFromSiteUrl("http://brandNew"); Console.WriteLine(sites.Count + " sites found"); foreach (Hashtable site in sites) { Console.WriteLine(site[SitesManager.ID]); } }