Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
GevorgMel
6 years agoHelpful | Level 5
Dropbox .NET SDK (Refresh Token)
Hi, I found changes in OAuth2 for API, so the authorization could be done with offline access, ascuirung both Access and Refresh tokens. This part is OK, with ProcessCodeFlow method in SDK. But co...
- 6 years ago
GevorgMel This functionality should now be available on DropboxTeamClient as of release v5.1.0. Please update and give that a try and let us know if you run in to any issues. Thanks!
OFV
5 years agoExplorer | Level 3
Yes I am using the appid and appsecret. I'm using the constructor as in the example, with the addition of the access token expiry date:
CurrentClient = new DropboxClient(accessToken, refreshToken, expiryDate, appKey, appSecret, config);
The access token returned starts with sl. and is 139 bytes long. The refresh token starts with 1y_ and is 64 bytes long.
Fetching data from the api works up to the expiry date, which was set to 2020-12-09 17:37:48. After that fetching data takes a few minutes (!!) before throwing the exception.
OFV
5 years agoExplorer | Level 3
I found 2 possible culprits:
- My code wasn't properly "asynced", which I know I have to avoid: eg: ListFolderAsync(xxx).result(). I recursively converted all methods to async (which was a long way up), and got rid of the .result calls. (I know these calls result in timeouts when exceptions occur inside)
- In the Dropbox App console for our app, under OAuth section: The "access token expiration" was still set to "no expiration", which I now set to "short lived".
With these 2 updates, it now seems to run (with original accesss token still from yesterday).
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!