This project is read-only.

Work flow SharpBox 1.2

Nov 1, 2011 at 8:54 PM

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 this Exception:

"Attempted to perform an unauthorized operation"

 

I'm using Asp.NET & C#

Please answer me..

Thank a lot!

Nov 2, 2011 at 9:24 PM
Hi,

ok which code branch is he using and when did you created the app key/secret?

Applicationkeys created with the version 1 of DropBox API does not work with the Mobil-Login please use for this kind of keys the described way in our tutorial:http://www.codeplex.com/Download?ProjectName=sharpbox&DownloadId=287249

I hope this helps
Dirk

2011/11/1 moshfeu <notifications@codeplex.com>

From: moshfeu

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 this Exception:

"Attempted to perform an unauthorized operation"

I'm using Asp.NET & C#

Please answer me..

Thank a lot!

Read the full discussion online.

To add a post to this discussion, reply to this email (sharpbox@discussions.codeplex.com)

To start a new discussion for this project, email sharpbox@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Dec 25, 2012 at 1:33 AM

Hi

Is there an example of the callback-Page in asp.net? Where do I get the informations from dropbox?

Best regards

Christoph