Comments
-
Hi Ashley, the cursor can get very large like this when the account has many shared folders. The 414 error indicates that the URI (including the parameters, in this case, the long cursor) is too long to be processed. Instead, you can include the parameters in the body of the API call, not on the URI itelf. For example, in…
-
If you want to get a URL for a file (image or otherwise), you can use /2/files/get_temporary_link. This will yield the original file data. If you want a thumbnail of an image though, you can use /2/files/get_thumbnail. Note that this returns the thumbnail data directly, and not as a URL, though.
-
No, unfortunately that's not built in to the SDK, but I'll be sure to pass this along as a feature request.
-
You're specifying a very old version of SwiftyDropbox. Please try the latest version as shown here: https://github.com/dropbox/SwiftyDropbox#cocoapods If you need Swift 2.3: https://github.com/dropbox/SwiftyDropbox#swift-23
-
Ok, the fix is rolling out now. I just tried the sample code again, and it's no longer reproducing the issue for me. Please try it out when you get a chance and let me know if you're still seeing the issue.
-
Quick update, it turns out the fix actually wasn't deployed yet. (My apologies!) I was able to use your sample code to reproduce the issue though, so I'll try it again once the fix is actually deployed to see if that resolves it. That should be later today or tomorrow. I'll follow up here once that's done.
-
Great, that shouldn't be a problem. That endpoint should be implemented in the SDK the next time the SDK is regenerated and released, which should be well before June.
-
Hi Victor, you can use instanceof to determine if a particular entry is a file or folder, as shown here: https://github.com/dropbox/dropbox-sdk-java/blob/master/examples/android/src/main/java/com/dropbox/core/examples/android/FilesAdapter.java#L82 Hope this helps!
-
If your access tokens don't have a separate "secret" portion, it sounds like you already have OAuth 2 access tokens. Note that API v1 supports both OAuth 1 and OAuth 2 (whereas API v2 only supports OAuth 2), so you may already have been using OAuth 2 access tokens with API v1. In that case, you don't need to migrate these…
-
The is_dir field would indicate if the relevant item is a folder or not. For some events which only occur on files, such as the ones you mentioned, this is expected to always be false. Since these particular events only apply to files, they can't be retrieved for folders. If you want to know when these events occur for…
-
I don't know off hand if there are others, but I'm sending this along to the team as a request to get the documentation updated.
-
Thanks for the report! I'll let the team know.
-
The create_oauth2_access_token method in the Python SDK for API v1 uses the /1/oauth2/token_from_oauth1 endpoint, which is signed with OAuth 1. You can continue using this method/endpoint while API v1 is available The Official Objective-C SDK for Dropbox API v2 only uses OAuth 2, so it can't use that endpoint. We did…
-
In order to allow other users to link to your app, you'll need to implement the OAuth app authorization flow in your app. There's a guide that explains how it works here: https://www.dropbox.com/developers/reference/oauth-guide Exactly how you implement this depends on what SDK/library you're using (if any). Please refer…
-
Thanks Keith. It was a server-side fix, so we'll keep investigating. And thanks for the sample project! I'll try that out.
-
Thanks Keith! It's possible that the issue only reliably reproduces on some accounts/files and not others. We just deployed a fix. Can you try again and let me know if you're still seeing the issue or not? Thanks!
-
Thanks, that's helpful! It looks like the issue here is that you're building the client inside the IBAction, and it's going out scope before the API call can finish. Trying defining your client outside the IBAction so that it doesn't get lost.
-
API v2 doesn't return the file/folder listing, e.g., in SharedLinkMetadata/FolderLinkMetadata, unfortunately. I'll send this along as a feature request though. (A workaround would be to use the deprecated /1/metadata/link.)
-
You can use /2/files/list_folder and /2/files/list_folder/continue to get the file listing and check for further changes over time. If the integration is built client-side, you can also use /2/files/list_folder/longpoll for low-latency detection of changes while your app is open. (If you're using an SDK or library, there…
-
That's correct, the new method for createTemporaryDirectUrl is getTemporaryLink. For createShareableUrl, you'll want to use createSharedLinkWithSettings (and ListSharedLinks if a link already exists).
-
Actually, we've found a case where this can occur. We're working on it, and I'll follow up here once I have an update for you.
-
A -999 error is NSURLErrorCancelled, which is documented as: Returned when an asynchronous load is canceled. Can you check if your app is accidentally calling .cancel() on the request by any chance? Otherwise, I can't seem to reproduce this, so can you let us know: * the code snippet you're using to reproduce this * the…
-
Hi Jay, it looks like you're using the /1/oauth2/token_from_oauth1 endpoint to get an OAuth 2 access token from an OAuth 1 access token. Based on the response you shared, that's working correctly. The "access_token" value there is the OAuth 2 access token. OAuth 2 access tokens are different from OAuth 1 access tokens in…
-
Hi Keith, I can't seem to reproduce this. Can you share the relevant code snippets and the out of order output you're getting? Thanks in advance!
-
Thanks for the report! We're looking into it.
-
The first folder in your screenshot, without the puzzle piece icon, is a normal folder, (e.g., explicitly created by an app with the "full Dropbox" permission). The second folder in your screenshot, with the puzzle piece icon, is a special "app folder", which automatically gets created when you connect an API app with the…
-
Unfortunately the Dropbox API doesn't offer this functionality, but I'll be sure to pass this along as a feature request.
-
That's right. There's a simple example here, but you may want to handle the more specific cases (e.g., invalid access token versus suspended user) in the DBAUTHAuthError.
-
I see, thanks for clarifying. The /1/team/log/get_events endpoint hasn't been implemented in API v2 yet per the note here: https://www.dropbox.com/developers/documentation/http/teams The Python SDK only supports API v2, and once that endpoint is available on API v2, the SDK will be updated to include it.
-
The official Dropbox Python SDK does now support the Business API: https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.DropboxTeam