Exemple #1
0
        private static void UpdateSite()
        {
            var siteManager = new SitesManager();

            siteManager.setTokenAuth("XYZ");

            string[] urls                    = { "http://brandNew", "http://shinyNew" };
            string[] excludedIps             = { "123.123.11.1", "212.21.11.2" };
            string[] excludedQueryParameters = { "key1", "key2" };

            var status = siteManager.updateSite(
                5,
                "Brand New Site",
                urls,
                true,
                excludedIps,
                excludedQueryParameters,
                "UTC-4",
                "USD",
                "group2",
                new DateTime(2011, 01, 10)
                );

            if (status)
            {
                Console.WriteLine("Site updated");
            }
        }