cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

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: 
Highlighted

Constantly having to get new tokens?

Explorer | Level 3

I am trying to use the api to allow powerQuery to query a set of dropbox folders. I've used this successfully in thep ast to query a specifc file.  This timne i am getting odd behaviour.  I get a token for my all dropbox.  I use this to rquery the files. all fine.  I then change the files in some way and the changes do not feedthrough. I have to go and get another token then it works.

 

Can someone one clarify thisi is not correct behaviour. do tokens last forever as seem to whne i'm doing a single file.  Obviously useless if you have to update the token everytime you change the contents of the folder.  Just want to check if I'm going mad!!!

 

mike

1 Reply 1
Highlighted

Re: Constantly having to get new tokens?

Dropboxer
Dropboxer
Hi Mike, Dropbox API access tokens don't expire by themselves, but they can be explicitly revoked by the user or app.

If the token has been revoked, you'd get a 401 error.

If the token hasn't been revoked, it should continue working, and you shouldn't have to get a new token to see new file or file changes.

Can you share the code and the full error or unexpected output you're getting so we can take a look and help? (Just be sure not to share the access token itself.)
Polls
Do you know how to organize your files and folders?
We have created a guide on folder best practice, so you can get organized now check it out here.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?