Forum Discussion

Shriram's avatar
Shriram
New member | Level 2
5 years ago

Need help in connecting drop box API

Hi Team,

 

I want to upload files from one dropox folder to another and i want to automate this job using azure logic app.

 

I dont want to use drop box connectors provided by logic app , instead i want to write a .net core webapi which will connect to my dropbox app and then using dropbox http api's it can start uploading files.

 

Dropbox supports .net SDK which contains helper classes to connnect to dropbox and it uses Oauth2 for authorization. I don't want to use oauth code flow where owner of dropbox account has to allow permissions from front end browser.

 

Instead i want something like passing client and client secret for the app and it should return me an access token which will be used to call dropbox apis .

 

Thanks and Regards,

Shriram

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

    The Dropbox API does not offer a way to get an access token just by exchanging the app key and secret. The app key and secret only identify your app itself. In order to access a Dropbox account, the app needs authorization from the account owner. 

     

    Typically, to get authorization from the user and receive an access token for the end-user, the app should implement and use the OAuth app authorization flow. You can find information on how this works in the OAuth Guide.

     

    Note that if you only need to access your own account though, you can just manually get an access token for your own account once and then store and re-use that for API calls to your account without further manual intervention. Make sure you don't expose your access token to other users though.

About Discuss Dropbox Developer & API

Node avatar for Discuss Dropbox Developer & API
Make connections with other developers804 PostsLatest Activity: 24 hours 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!