Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Getdata();
            string   Url      = "https://acuvatehyd.sharepoint.com/teams/shubhamtrial";
            SiteData sitedata = new SiteData();

            sitedata.GetSiteData(Url, UserName, passwrd);
            //sitedata.GetDocument(Url, UserName, passwrd);
            sitedata.DownloadFile(Url, UserName, passwrd);
            sitedata.GetDocumentData(Url, UserName, passwrd);
            //sitedata.UploadData(Url, UserName, passwrd);
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            UserCredentials.Getdata();
            string   Url      = "https://acuvatehyd.sharepoint.com/teams/shubhamtrial";
            SiteData sitedata = new SiteData();

            LoginStatus = sitedata.GetSiteData(Url);
            if (LoginStatus == true)
            {
                sitedata.DownloadFile(Url);
                sitedata.GetDocumentData(Url);
                //sitedata.UploadData(Url, UserName, passwrd);
            }
            else
            {
                Main(args);
            }
            Console.ReadKey();
        }