public static Boolean checkCredentials(String url, String username, String password)
        {
            SitesService service = new SitesService(APP_NAME);

            service.setUserCredentials(username, password);
            try
            {
                AtomEntry entry = service.Get(url);
                if (entry.Title.Text.EndsWith(" "))
                {
                    entry.Title.Text = entry.Title.Text.Substring(0, entry.Title.Text.Length - 1);
                }
                else
                {
                    entry.Title.Text += " ";
                }
                service.Update(entry);
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex.ToString());
                return(false);
            }
            return(true);
        }
        public SitesAPI(string sitename, string username, string password, bool replaceLinks = false, bool logHTTPTraffic = false)
        {
            // Initialize member variables
            this.m_replaceLinks = replaceLinks;
            this.m_siteName     = sitename;
            this.m_service      = new SitesService(APP_NAME);
            this.m_service.setUserCredentials(username, password);

            // Start HTTP Traffic Logging if requested
            if (logHTTPTraffic)
            {
                startHTTPTrafficLogging();
            }

            // read existing hash table data if any
            m_hashTableFileName = Path.Combine(Globals.m_rootDirectory, LAST_UPDATED_TIMES_PREFIX + ".log");
            if (File.Exists(m_hashTableFileName))
            {
                readHashTableFile(m_hashTableFileName);
            }
        }