コード例 #1
0
        private static void ConfigureDropbox()
        {
            var authorizeUrl = DropboxHelper.BuildAuthorizeUrl();

            Console.WriteLine("Configuring AzureCopy for Dropbox:\n\n");
            Console.WriteLine("Please open a browser and enter the URL:\n" + authorizeUrl + "\n");
            Console.WriteLine("Once you log in with your Dropbox Account, please return to this screen and press enter.\n");
            Console.ReadKey();
            Console.WriteLine("Modifying config file with code");
            Console.WriteLine("Thankyou....  enjoy AzureCopy");

            var userLoginTuple = DropboxHelper.GetAccessToken();

            ConfigHelper.DropBoxUserSecret = userLoginTuple.Item1.ToString();
            ConfigHelper.DropBoxUserToken  = userLoginTuple.Item2.ToString();

            ConfigHelper.SaveConfig();
        }