I tried to using the new API sharpbox 1.2.
I tried this code:
if (Request.UrlReferrer.ToString() == string.Empty)
{
DropBoxConfiguration config = DropBoxConfiguration.GetStandardConfiguration();
config.AuthorizationCallBack = new Uri("http://localhost:60003/Default.aspx");
DropBoxRequestToken token = DropBoxStorageProviderTools.GetDropBoxRequestToken(config, "customerkey", "customersecret");
string authUrl = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(config, token);
Response.Redirect(authUrl);
}
else
{
ICloudStorageAccessToken token1 = DropBoxStorageProviderTools.LoginWithMobileAPI("username", "password", "customerkey", "customersecret");
}
But I got an Exception like this:
"Attempted to perform an unauthorized operation"
I'm using Asp.NET & C#
Thanks a lot!