Forum Discussion

senthilnathan's avatar
senthilnathan
Explorer | Level 3
5 years ago

Dropbox API

Hi,

 

  1. I develop application in vb.net to send file to Dropbox using Dropbox API.
  2. how to automatic get access token with dropbox login and password. also dropbox folder selection where file to be sent.                          I use the below code that I have some error  pls send sample project to automatic get access token with dropbox login and password. also dropbox folder selection where file to be sent.

 

Note:

     Pls reply soon ASAP

 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    If you're using .NET, we recommend using the official Dropbox API v2 .NET SDK. That comes with several example apps.

     

    To get an access token for a user, you should send them through the OAuth app authorization flow. The SDK will do most of the work for you, as shown in this example. Your app should never handle the user's username and password directly.

     

    If something isn't working as expected, please share the steps to reproduce the issue, as well as the full error or unexpected output.

    • senthilnathanp's avatar
      senthilnathanp
      New member | Level 2

      hi sir,

      1. we would like to open dropbox user to keyin their login credtials

      2. Get the access token

      3. use this access token to upload file to the signed user dropbox account

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        Yes, the Dropbox OAuth app authorization flow allows you to prompt the user to sign in to Dropbox to authorize your app, resulting in an access token you can use to upload files. Please refer to the links in my previous comment in this thread for information on how to implement that.

         

        If something isn't working as expected, please share the details of the issue so we can help.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers806 PostsLatest Activity: 2 days ago
217 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!