Comments
-
Per the documentation for the /oauth2/authorize page, this should be processed in the user's system browser, not a web view.
-
@"dst" Based on the output you shared, this doesn't appear to be exactly the same as the issue originally reported on this thread. I.e., the original issue reported having duplicate entries, but I don't see any duplicate entries in your output. Seeing the separate deletion and addition (one each per 'b' and 'd' in your…
-
How big is the file you're trying to upload when this occurs? The sample doesn't use upload sessions, so it can only handle small files. If you need it to support large files, you'll need to update it to use upload sessions. Otherwise, this might just indicate transient server/network issues. If you're still seeing this,…
-
Thanks for the post! I can't say if or when the team may decide to implement this on the public API, but I'll pass this along as a feature request.
-
@"Charles R.5" I just wanted to follow up on this with two notes: - The team pointed out that if you want to make sure you're deleting a folder, you can specify the folder's "id" as the `path` value for the delete_v2 call - For the opposite case, where you want to make sure you're deleting a specific file, we added a…
-
Can you print out the actual /oauth2/token HTTP response body? That would be the best way to troubleshoot this.
-
There isn't a property named just "folder_id" for Dropbox files or folders. Perhaps you meant just "id"? In any case, you can find documentation for all of the Metadata properties in the documentation, e.g., under the Metadata types documented as the return type of /2/files/get_metadata:…
-
Yes, that's all that is required. The path would be the remote path to the desired file inside the Dropbox account. For example, for a file named "myfile.txt" inside a folder named "Documents", the path would be "/documents/myfile.txt". You can also get these values from the API, e.g., using…
-
Yes, Dropbox allows the use of localhost redirect URIs.
-
No, the user needs to explicitly authorize the app in the browser in order for the app to receive an access token. The app can then store and re-use the resulting access token for future API calls though, without further manual user action.
-
1. It sounds like you're referring to the "app secret". You won't necessarilly need to use this. For example, for client-side apps, such as Android apps, you would use the "token" app authorization flow, which doesn't require the app secret. 2. The `tokenRevoke` method only revokes the access token (whichever is currently…
-
We don't have official sample code for doing this in HttpWebRequest in particular. I recommend reviewing the resources Chuck shared above for help writing your code.
-
For reference, the team increased the rate limit for creating Paper docs via the API. Hope this helps!
-
Thanks for the report! We'll look into it.
-
Thanks for the report! For large amounts of data, it is possible that the server may not respond in time before the client times out. I'll ask the team to look into how we might be able to improve this. To try to work around this though, you can make a client without the client timeout like this: dbx =…
-
To use the Dropbox API in .NET we recommend using the official .NET SDK if possible: https://github.com/dropbox/dropbox-sdk-dotnet I recommend reading through the guide there to get started. It has methods for uploading files, such as UploadAsync:…
-
Using the /2/files/list_folder endpoint is the right way to begin listing the contents of a folder. Please check the content of the response body. It should contain a more specific error message indicating what the issue is.
-
@"saravananct143" I see you also opened a new thread for this so we'll follow up there: https://www.dropboxforum.com/t5/API-support/How-to-List-all-files-in-the-Dropbox-folder-using-Web-Request/m-p/270141#M15956
-
I'll make a note to follow up on this thread if/when this is implemented.
-
For reference, the API offers a batch endpoint for creating folders now: https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_batch
-
It looks like you just have a typo in your `path` value. You have "/winllin.pro" instead of "/willin.pro". (Note the extra 'n'.)
-
@"elsigh" The first one is incorrect because this endpoint doesn't support file IDs in that `path` parameter. (If it did though, you would supply just the "id:..." string, without a leading slash.) The second one is correct, and it works for me. Can you share the full output you're getting? (Make sure to use both `then`…
-
The single upload calls, i.e., the non-upload session methods such as uploadUrl, are not meant for use over long periods of time, as they operate using only a single HTTPS request. If you need to manage an upload over a long period of time like this, upload sessions would work better. You can store the upload…
-
Unfortunately, I can't offer any specific guidance on what the real world performance would be. It would depend on a variety of factors, and may change over time as well anyway.
-
@"CatalystCSLtd" Team admins can check their team's current upload API usage here: https://www.dropbox.com/team/admin/billing/manage Note that if the team is currently on an unlimited plan, that number will not be updated.
-
What was in the HTTPS response? It should either contain an error or the result. Also, I redacted it for you, but you should revoke that access token since you posted it publicly. It looks like you already figured out how to get an access token, since you posted one, but for reference, the OAuth guide goes over how to.
-
To download a file from a shared link for a folder using the JavaScript SDK, use the sharingGetSharedLinkFile method. You should supply the original shared link, i.e., the same URL you passed to filesListFolder, as well as the relative path for the particular file in the folder you want to download.
-
There isn't a limit, but note that the results from /2/files/search are subject to a delay due to indexing, so results for new files/file versions will not be instantly available. The length of the lag will vary account to account, and is likely to be larger if there are many files or a lot of file activity.
-
In order to list the contents of a folder, you should use /2/files/list_folder and /2/files/list_folder/continue. It sounds like you're referring to using .NET, so we recommend using the official API v2 .NET SDK. It has corresponding ListFolder and ListFolderContinue methods. If can't or don't want to though, you can make…
-
What do you mean exactly when you ask "how can these be persisted?" Once you have that DBUploadTask, you can call suspend, resume, or cancel if/when desired. You can keep that object whever you want, e.g., as a property of the controller. [thisTask suspend]; ... [thisTask resume]; ... [thisTask cancel]; Also, note that for…