cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to know what we learned at IBC? Check out our learnings on media, remote working and more right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Upload Files to Shared Folders via Zapier Integration

Upload Files to Shared Folders via Zapier Integration

sgvincent
New member | Level 2
Go to solution

Within the Zapier integration, there is the ability to upload to Dropbox but not a Shared folder in Dropbox. After reading through the current API documentation it doesn't look like there is a programmatic method to do this either on an automated basis either. Am I misunderstanding or is there not a way to fully automate access to a Shared Folder to update folders?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

New Dropbox access tokens are short-lived and expire after a short period of time, but refresh tokens do not expire and can be stored and re-used repeatedly. Once you have a refresh token for an account, you do not need to do the https://www.dropbox.com/oauth2/authorize... step for that account again; you can instead programmatically use the refresh token to get a new access token without manual intervention.

 

You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.

 

 

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution

The Dropbox API can be used to upload to a shared folder in a connected account. For instance, an app can call /2/files/upload with a "path" parameter containing a path inside a shared folder. Note though that you'd need to use an app with the "full Dropbox" access type, not "app folder", to be able to access shared folder.

 

I suggest reading the File Access Guide for more information on referencing files with the API. Also, read the Team Files Guide for information on how to interact with team-owned content, such as if the folder is in the "team space".

sgvincent
New member | Level 2
Go to solution

Hey Greg,

The issue I am running into is the OAuth, even with a refresh token it expires pretty quickly and regenerating requires manual intervention each time. The goal is to have the code run each time its triggered in Zapier (and unfortunately requires using request libraries instead of the python sdk). Is there a way to go through this step 

https://www.dropbox.com/oauth2/authorize?client_id=MY_CLIENT_ID&redirect_uri=MY_REDIRECT_URI&respons...

 

and authorize without having to manually allow access each time?

Greg-DB
Dropbox Staff
Go to solution

New Dropbox access tokens are short-lived and expire after a short period of time, but refresh tokens do not expire and can be stored and re-used repeatedly. Once you have a refresh token for an account, you do not need to do the https://www.dropbox.com/oauth2/authorize... step for that account again; you can instead programmatically use the refresh token to get a new access token without manual intervention.

 

You can find more information in the OAuth Guide and authorization documentation. There's a basic outline of processing this flow in this blog post which may serve as a useful example.

 

 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    sgvincent New member | Level 2
What do Dropbox user levels mean?