Comments
-
Thanks for reporting this issue. This issue has now been addressed. To resolve this issue, please now disable and then re-enable the files.permanent_delete scope and then click "Submit" for any affected apps(s) on the "Permissions" tab for the app on the App Console. If you do not need the files.permanent_delete scope, you…
-
Thanks for reporting this issue. This issue has now been addressed. To resolve this issue, please now disable and then re-enable the files.permanent_delete scope and then click "Submit" for any affected apps(s) on the "Permissions" tab for the app on the App Console. If you do not need the files.permanent_delete scope, you…
-
Thanks for reporting this issue. This issue has now been addressed. To resolve this issue, please now disable and then re-enable the files.permanent_delete scope and then click "Submit" for any affected apps(s) on the "Permissions" tab for the app on the App Console. If you do not need the files.permanent_delete scope, you…
-
@"ENGR_MANSOOR" You'll need to enable the "files.metadata.read" scope on the "Permissions" tab of the app's page on the App Console, then click "Submit". Then, authorize the app again to get a new access token (and optional refresh token) as Здравко noted, since that change is not retroactive to existing authorizations.
-
@"UserAccount" The API still supports these IDs. As Здравко mentioned, make sure you're using the correct value, e.g., as returned by the API itself. Also make sure you're calling using an access token that has access to the item, and that you're using the correct root, if applicable. etc. I recommend reading the File…
-
@"Reshma " Здравко is correct; file templates/properties are a feature of the Dropbox API only and are not accessible on the Dropbox website, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. If you're looking for something like this accessible both via the Dropbox…
-
You can upload new versions of files using the upload functionality, such as the upload method. You can find an example here.
-
If ShareFolderLaunch.isAsyncJobId from shareFolder is true, you should then poll checkShareJobStatus using the job ID from ShareFolderLaunch.getAsyncJobIdValue to check on the status of that share job. That will give you a ShareFolderJobStatus you can check to see the current status. When it's complete, you can get the…
-
When using the Dropbox API v2 Java SDK, you can get the server and client modified date/time for a file from FileMetadata.getServerModified() and FileMetadata.getClientModified(), respectively. You can get FileMetadata objects from various methods, such as from getMetadata or listFolder/listFolderContinue. When uploading…
-
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or…
-
Refresh tokens and access tokens are not interchangeable. Refresh tokens cannot be used as access tokens. Refresh tokens are instead used to programmatically retrieve new short-lived access tokens whenever needed (without manual user interaction). The official Dropbox SDKs will do that for you automatically, e.g., if you…
-
It sounds like you're using all of the available batch endpoints for this use cases, so the only remaining change that comes to mind would be to increase the chunk size, so that you use fewer requests for sending the file data overall. You can use a chunk size of up to 150 MB, but be aware that increasing the chunk size…
-
If you've reached "Successfully set up client!" in that sample, you've already successfully processed the app authorization flow and retrieved a refresh token. The refresh token is in 'oauth_result.refresh_token' in that sample, e.g., as used in line 25. For your actual app, you can store and re-use that.
-
It looks like you're running your python3.10.exe directly, and the window is closing automatically when the program completes (such as from the exit call, as you mentioned). I can't really offer support for your development environment itself as that's not made by Dropbox, but there are other ways to set this up so that…
-
Thanks! I'll let you know once I have any news on this.
-
Thanks for letting us know. I'll bring this up with the team. Can you also let me know if you're seeing this on all such calls, or only a portion? If it's not all calls, can you let me know roughly what percent of these calls fail like this for you?
-
@"phunction" You can find the default parameter values for GetAuthorizeUri in the documentation here. And that's correct, you can re-use refresh tokens; refresh tokens don't expire by themselves (though they can be revoked by the app or user on demand).
-
Apologies for the trouble with the spam filter. I just unflagged your posts. Anyway, I saw your new post and followed up there.
-
Can you elaborate on what you mean when you say "python just shuts down"? Is there any error/output? After line 19, you should either get an error printed via line 22, or execution should continue and perform the users_get_current_account call (though this minimal example doesn't actually do anything with the result) and…
-
1. Yes, using a refresh token is the right way to maintain long-term access without repeated manual interaction. 2. You can find an example of using the Python SDK to process the app authorization flow to get a refresh token here. Once you have the refresh token, you can store and re-use it to make the Dropbox client…
-
@"phunction" As Здравко indicated, setting tokenAccessType: TokenAccessType.Offline on GetAuthorizeUri is the right way to request offline access in order to get a refresh token, as shown in the example they linked to. You can find the full options for GetAuthorizeUri in the documentation. Also, please note that…
-
Thanks for following up. I'm not sure I understand your use case though. Can you elaborate? Why do you need to be able to retrieve the current short-lived access token? The recommendation is to just create the client with the credentials you have and let the client perform the refresh automatically, whenever needed (even…
-
Thanks for following up. I see you're using the Dropbox .NET SDK. As long as you supply the necessary credentials when creating the DropboxClient object, the SDK should handle the refresh process for you automatically, without you getting the expired access token error yourself or needing to call CheckAndRefreshAccessToken…
-
@"didouchk" In addition to what Здравко said, note that there is an Android-specific example here. Make sure you're implementing the authorization flow as shown. And if something doesn't seem to be working as expected, please reply with: * the version numbers of the Android platform and Dropbox SDK you are using * the…
-
I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK/library you are using, if any * the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or…
-
@"spotloader" This feature request was filed with the team, but I don't see any plans to implement it currently.
-
You can register an individual account for free here: https://www.dropbox.com/register Individual accounts like that have UserRootInfo.
-
@"Reshma " As Здравко indicated, you cannot use a refresh token as an access token. Refresh tokens and access tokens serve different purposes and are not interchangeable. You can find examples of using the authorization flow in the Java SDK here. You can find an example of using a credential with a client to make call…
-
@"newuser3" No, I don't have an update on this request.
-
1. No, Dropbox doesn't offer a way for user to define their own APIs. 2. No, this doesn't depend on the type of Dropbox plan. The Dropbox API doesn't offer the ability to interact with Dropbox Paper templates or shortcuts programmatically, but I'll pass this along as a feature request. I can't promise if or when that might…