Dropbox Token Issuer Tool (Revised) for Sharpbox

Submitted by Karthikeyan on

Since, the Dropbox Token Issuer Tool provided with Sharpbox kit has many issues, I have developed a small application to generate Token file to use with SharpBox API.

Steps to Generate Token File :

1. Download and install the tool from the below link

Download Dropbox Token Issuer Tool for SharpBox

2. Login to your dropbox account and go to developers page

3. Select core API and create a new App

4. Note the App Key and App Secret.

5. Now run the tool

 

6. Input the AppKey & App Secret

7. Click get authorization URL

8. Now click on the link to open the URL in web browser.

9. Login page may appear if you already logged in, then click the Authorize button. Then you will be get redirected to https://127.0.0.1. Don't worry about it.

10. Now click the "Authorization completed, Generate Token" button in the tool.

11. Now the token will be generated and will be saved in a file name SharpDropBox.Token

12. Click open out put folder link to open the file location.

That's all now you can use this Token with ShapBox API.

 

View a sample implementation here:

Sharpbox API Implementation Sample Source code & Tutorials

Category

Comments

Submitted by Karthikeyan on Sep 26, 2013 - 20:12

Permalink

Check your internet connectivity and access to Dropbox website.

Submitted by Karthikeyan on Aug 09, 2013 - 20:02

In reply to by Giovanni (not verified)

Permalink

You're welcome

Submitted by Giovanni (not verified) on Aug 09, 2013 - 18:18

In reply to by Karthikeyan

Permalink

the proxy was the problem, thanks for the help!

Submitted by Karthikeyan on Aug 08, 2013 - 19:59

In reply to by Giovanni (not verified)

Permalink

May be.. Try out of box..
App (MedPlusImages) you provided in the screenshot works fine.. No problem..

Submitted by Giovanni (not verified) on Aug 07, 2013 - 21:57

In reply to by Karthikeyan

Permalink

my app in image.
maybe the internal proxy server?

Submitted by Karthikeyan on Aug 07, 2013 - 08:09

In reply to by Giovanni (not verified)

Permalink

Create a new App in Dropbox and regenrate the token file then try.

Submitted by Giovanni (not verified) on Aug 06, 2013 - 21:45

In reply to by Karthikeyan

Permalink

maybe my account in dropbox?

Submitted by Giovanni (not verified) on Aug 06, 2013 - 21:45

In reply to by Karthikeyan

Permalink

same error :(

Submitted by Giovanni (not verified) on Aug 05, 2013 - 16:42

In reply to by Karthikeyan

Permalink

I'm not doing anything before. Close ()

only. Open () where I get the error

Submitted by Karthikeyan on Aug 01, 2013 - 19:17

In reply to by giovannidebona (not verified)

Permalink

Your code works properly.. No problem in this segment.
What are you doing before dropBoxStorage.Close()?
i.e., iterating the folder content..
Probably that segment only has the problem. share that segment of code if you need further help.

Submitted by giovannidebona (not verified) on Aug 01, 2013 - 18:27

In reply to by Karthikeyan

Permalink

Hi!

I am using the example code from tutorials sharpbox:

Dim dropBoxStorage As New CloudStorage()

Dim dropBoxConfig = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox)

Dim accessToken As ICloudStorageAccessToken = Nothing

Using fs As FileStream = File.Open("C:\SharpDropBox.Token", FileMode.Open, FileAccess.Read, FileShare.None)

accessToken = dropBoxStorage.DeserializeSecurityToken(fs)

End Using

Dim storageToken = dropBoxStorage.Open(dropBoxConfig, accessToken)

dropBoxStorage.Close()

Submitted by Karthikeyan on Aug 01, 2013 - 08:29

In reply to by giovannidebona (not verified)

Permalink

You may have provided the wrong folder name that is not exist in dropbox.

Recently Dropbox changed the apps behaviour. i.e. by default they store the uploaded files to Apps folder.

e.g.
dropBoxStorage.UploadFile(srcFile, "/");

Submitted by giovannidebona (not verified) on Jul 31, 2013 - 21:57

Permalink

Hi!

"Couldn't retrieve child elements from the server"

the erros occurs in:

test token (DropBoxTokenIssuer.exe)

or in .Open method:

Dim storageToken = dropBoxStorage.Open(dropBoxConfig, accessToken)

the link: http://stackoverflow.com/qu...
did'nt help.

my app in drop box is: Permission typeFull Dropbox

any idea? thanks.