-1
I’m having trouble connecting to DropBox
using a Console Application
of C#
and tried to create a Redirect URIs
in my profile app
on the website of Dropbox
, but I don’t understand much.
In my app, I have http registered
When I try to run the application through Visual Studio, I get authentication error.
I have the code to follow
public partial class Form1 : Form
{
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("wbjcj6pa94berli", appKey, "https://www.dropbox.com/developers/apps/info/wbjcj6pa94berli", false, false);
login.Owner = this;
login.ShowDialog();
if (login.IsSuccessfully)
{
Properties.Settings.Default.AccessToken = login.AccessToken.Value;
Properties.Settings.Default.Save();
}
else
{
MessageBox.Show("Error...");
}
}
private void GetFiles()
{
}
}
The truth is I don’t know what to put in this URI
, someone can help me?