Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Nemiro.OAuth;
using Nemiro.OAuth.LoginForms;

namespace FileManager
{
    public partial class Form1 : Form
    {

        private string CurrentPath = "/";
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            if(string.IsNullOrEmpty(Properties.Settings.Default.AccessToken))
            {
                this.GetAccessToken();
            }
            else
            {
                this.GetFiles();
            }
        }

        private void GetAccessToken()
        {
            var login = new DropboxLogin ("", "");
            login.Owner = this;
            login.ShowDialog();

            if (login.IsSuccessfully)
            {
                Properties.Settings.Default.AccessToken = login.AccessToken.Value;
                Properties.Settings.Default.Save();
            }
            else
            {
                MessageBox.Show("error...");
            }
        }

//CS0619 'DropboxLogin.DropboxLogin(string, string, bool, bool)' is obsolete: Please use an overloads with a return url.


What I have tried:

I've done some Googling around (past hour or two) to no avail... Anyone able to help me with this? 
Posted
Updated 23-Jun-19 21:45pm

 
Share this answer
 
The error is self explanatory: it's an obsolete method and it shouldn't be used in new applications.

Why you get the error may be more complex - most likely you are trying to use code written for an earlier version of the API. Bue we can't tell you what to do, you need to talk to the people who wrote the code or "tutorial" you are following, and probably the API authors as well. They are easy to find: Nemiro.OAuth - Table of Content[^] - look on the left and there is a "feedback" link, or you may find a more up to date tutorial elsewhere on their site.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900