public static string AddInstagramMacAddressInfo(string macKey, string userName, string telNo)
        {
            string result   = "001";
            string inParams = string.Format("{0}||{1}||{2}", macKey, userName, telNo);

            try
            {
                WebClient wc        = new WebClient();
                string    encKey    = InstagramEncryption.AES256_encrypt(inParams);
                string    uriString = "http://www.woobinsoft.kr/AddInstagramMacAddressInfo.aspx?uk=" + System.Web.HttpUtility.UrlEncode(encKey);

                Stream       stream = wc.OpenRead(uriString);
                StreamReader sr     = new StreamReader(stream);
                result = sr.ReadToEnd();

                if (string.IsNullOrEmpty(result) == true)
                {
                    result = "003";
                }
                else
                {
                    XmlDocument xmlDoc = new XmlDocument();
                    xmlDoc.LoadXml(result);

                    result = xmlDoc.DocumentElement.ChildNodes[0].InnerText;
                }
            }
            catch (Exception ex)
            {
                result = "N";
                WriteTextLog("GetInstagramMacAddressCheck", ex.Message.ToString());
            }

            return(result);
        }
        public static string GetInstagramUserKey(string macKey)
        {
            string result = string.Empty;

            try
            {
                WebClient wc        = new WebClient();
                string    encKey    = InstagramEncryption.AES256_encrypt(macKey);
                string    uriString = "http://www.woobinsoft.kr/GetEncryptTicket.aspx?uk=" + System.Web.HttpUtility.UrlEncode(encKey);

                Stream       stream = wc.OpenRead(uriString);
                StreamReader sr     = new StreamReader(stream);
                result = sr.ReadToEnd();

                //if (string.IsNullOrEmpty(result) == true)
                //{
                //    result = string.Empty;
                //}
                //else
                //{
                //    WriteTextLog("GetInstagramUserKey===>", result);

                //    XmlDocument xmlDoc = new XmlDocument();
                //    xmlDoc.LoadXml(result);

                //    result = xmlDoc.DocumentElement.ChildNodes[0].InnerText;
                //}
            }
            catch (Exception ex)
            {
                result = string.Empty;
                WriteTextLog("GetInstagramUserKey", ex.Message.ToString());
            }

            return(result);
        }