Comments
-
With the API v2 Java SDK, you should use listFolder (or listFolderBuilder) and listFolderContinue to list the contents of a folder.
-
1. The issue that was fixed is actually a general deserialization issue that can affect any endpoint in the future as the API evolves, so I unfortunately can't guarantee exactly what will be impacted over time. 2. You can find information on what breaking changes, if any, you'll need to account for in your app in the…
-
API v2 download endpoints now accept the following Content-Types: - application/octet-stream - text/plain - text/plain; charset=utf-8 Hope this helps!
-
Thanks for the post! There isn't a workaround or update on this unfortunately, but I'll add your vote to the request.
-
Programmatically checking the file size to determine which style of uploading to use if a good practice. The example does that here: https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/upload-file/src/main/java/com/dropbox/core/examples/upload_file/Main.java#L270
-
Yes, you should be receiving a webhook POST notification when you create or alter a file in the app folder in a linked account. The URI doesn't need to be HTTPS. HTTP is allowed. We'll have to investigate this for your app and account specifically. Please open an API ticket from the affected account so we can look into it:…
-
It looks like you do have your webhook URI registered successfully, and webhook notifications appear to be working properly on our side right now. There are a few ways for this to fail like this though. Please check: - Make sure you're making changes in the account linked to the app. - Since this is an app folder app, make…
-
This is a result of an issue in the requests library. It's been fixed in requests itself, so please update requests to the latest version (currently 2.18.1).
-
FullAccount is a subclass of Account, which does include Email and Name. var account = await this.client.Users.GetCurrentAccountAsync(); Console.WriteLine(account.Name.DisplayName); Console.WriteLine(account.Email);
-
I don't have a sample for this to share unfortunately. Hopefully someone in the community would be so kind as to share one.
-
In that case, please open an API ticket with the following so we can investigate specifically: - the affected user ID(s) - the code that reproduces the issue - a sample request/response (just be sure to redact the access token) Thanks in advance!
-
Thanks! In this case, you'd want to run your desired code when the listFolder or listFolderContinue response has hasMore=false. The hasMore value tells you whether or not there are currently any more results to retrieve. If it's false, you know that you've received the entire listing. You're already using hasMore to…
-
I just took a look over your last reply and the supplied code, and I notice you mentioned you're trying to upload a 1.1 GB file, but you're using UploadBuilder. For large files, that is, anything bigger than 150 MB, you need to use "upload sessions", per the documentation for uploadBuilder. (You may even want to use upload…
-
Thanks! That's helpful. We'll look into it.
-
You can instead use GetCurrentAccountAsync to get the linked user's account information (i.e., for the user identified by the access token you use for the call), without specifying a user ID: https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Users_Routes_UsersUserRoutes_GetCurrentAccountAsync.htm So, call…
-
You should certiainly still be able to list empty folders. I just tried it and it's working correctly for me. Can you double check that you have the right path and are linked to the account you expect? Are you sure the folder existed at the time of the API call?
-
Can you let me know which SDK you're using (if any) and share the code you have so far so I can offer some specific guidance? Thanks in advance!
-
Thanks for the report! I don't believe the buffer is configurable, but we'll be happy to look into this issue. First, what version of the SDK are you using? If you're not already using the latest version (currently v3.0.3) please update to that and try again. If you're still seeing this issue on the latest version, please…
-
The webhook itself doesn't tell you what has changed. It only tells you when something has changed. You can certainly get just new changes after calling ListFolderGetLatestCursor though. It sounds like this is the process you're looking for: 1) Set up your webhook. 2) Call ListFolderGetLatestCursor with path="" (to…
-
Your connection speed to Dropbox depends on the routing you get between your ISP and our servers, and may be slower than your ISP's rated speeds. Sometimes resetting or retrying your connection gets you a different route and better speeds, but that is outside of our control. Some ISPs also throttle sustained connections so…
-
Are you calling startOAuth2Authentication and getOAuth2Token together like that? You should use just startOAuth2Authentication to initiate the app authorization flow. You should then later call getOAuth2Token to complete the app authorization flow in onResume. (Please refer to the samples linked in my previous post.)…
-
Yes, if you're building a server-side app, the best way to know when things change is to use webhooks: https://www.dropbox.com/developers/reference/webhooks If you're building a client-side app, the best way to know when things change is to use /2/files/list_folder/longpoll: (or the respective method in whatever…
-
Hi Vang, can you elaborate on what you mean when you say "It dont work all times"? What error do you get? And yes, if the call times out or returns changes:false, you should just set up another call and wait again. This way, you just keep one connection open whenever necessary (e.g., only while the app is active) to…
-
[Cross-linking for reference: https://stackoverflow.com/questions/45188338/dropbox-latest-changes-webhook ] Dropbox webhooks will be sent for changes to any files your app can access in the linked users' accounts. It's not possible to configure them to be sent for only specific files, but I'll pass this along as a feature…
-
The Dropbox web Chooser now returns the file ID: https://www.dropbox.com/developers/chooser
-
No, unfortunately I don't have an estimate for a fix for this.
-
A cursor is a string that keeps track of where you are in the history of the changes in the account. To list the contents of the folder, you call /2/files/list_folder. You should store the latest cursor you get from the response, and continue calling back to /2/files/list_folder/continue if/when necessary. The…
-
Thanks for writing this up. I unfortunately don't have any workarounds to offer here, but I'm sending these feature requests along to the team.
-
Thanks for the feedback! I can't speak to why any particular feature was or wasn't implemented, but I've sent this along to the team as a feature request.
-
No, I don't have an update on this issue.