Esempio n. 1
0
        private string userInfo(string url, string token)
        {
            string userInfo = "";

            try
            {
                if (token.Length > 1)
                {
                    XmlResponse xml = new XmlResponse();
                    userInfo = xml.getXmlResponse(url);

                }
                userInfo = editText(userInfo);
            }
            catch { }
            return userInfo;
        }
Esempio n. 2
0
        public string getCourseID(string modCode, string acadYear, string sem)
        {
            // string token = (string)(Session["sessionToken"]);
            Token myToken = new Token();
            XmlResponse myXmlResponse = new XmlResponse();

            string token = myToken.getToken();
            string authTokenUrl = "&AuthToken=";
            string getOptionUrl = "Modules_Search?";
            string otherOptionUrl = "&IncludeAllInfo=false";
            string moduleCodeUrl = "&ModuleCode=";
            string semesterUrl = "&Semester=Semester ";
            string acadYearUrl = "&AcadYear=";
            string url = ivleUrl + getOptionUrl + apiKey + authTokenUrl + token + otherOptionUrl +
                moduleCodeUrl + modCode + semesterUrl + sem + acadYearUrl + acadYear;

            string courseIdText = myXmlResponse.getXmlResponse(url);
            string courseID = trimCourseIdText(courseIdText, modCode);

            return courseID;
        }