Comments
-
The level of access an application has is decided by the developer when they first create and develop the app. That level of access is described when you first choose whether or not to connect the app to your app, as well as after the fact, on your account security page. You can see the level of access for each app…
-
If authorizedClient is nil, that would be why your app doesn't seem to "remember" the user. That's presumably related to the crash you're getting. Perhaps the app is crashing before the access token is being stored. Can you step through in the debugger to at least see where the crash is occurring?
-
Thanks for the feedback! The 400 error here with the plain text error message is more meant for the developer during development of the app. Generally, your app should be written such that a malformed access token like that wouldn't be able to make it into your released app, but you can catch the 400 and display the error…
-
The app shouldn't be crashing without some sort of error. Can you double check the console in Xcode?
-
Thanks for the report! The 500 response to an invalid access token would just be a bug on our side. We'll look into it The 400 is expected if the supplied string doesn't match the expected pattern for an access token, for example when supplying "abc" as mentioned. You can check the response body for an error message: Error…
-
The canOpenURL error would just indicate that the application being looked for (i.e., the official Dropbox app in this case) isn't found. That's expected on the simulator, or on a device without the official device installed. This error is safe to ignore, as the SDK will fall back to using the browser. Can you share the…
-
Did you follow all of the instructions for setting up the app authorization flow? https://github.com/dropbox/dropbox-sdk-obj-c#handling-the-authorization-flow If so, what error(s) are you getting? A few notes from what you shared so far though: * In API v2, the Dropbox root folder is identified by the empty string "", not…
-
That is the right pod name, but have you run `pod setup` yet? Try that if you haven't. If you have, try `pod repo update`.
-
It looks like there are some potential solutions here, if you haven't already seen these: https://github.com/Carthage/Carthage/issues/1135 https://stackoverflow.com/questions/32772573/project-name-was-compiled-with-optimization-stepping-may-behave-oddly-varia If those don't help, feel free to open a ticket with the…
-
Can you share the steps you took, and the full output/a screenshot showing the issue so we can make sure we follow exactly what you're seeing? Thanks in advance!
-
Thanks for sharing! Yes, this looks good. For reference, there's a similar example here: https://stackoverflow.com/documentation/dropbox-api/408/downloading-a-file/1351/downloading-a-file-with-every-error-case-handled-using-the-swiftydropbox-library#t=201701031839136724815 (It was written for an earlier version of the SDK…
-
The type of file shouldn't really matter. This works for me: let data = try? Data(contentsOf: URL(fileURLWithPath: "/local/path/to/test.pdf")) if (data != nil) { DropboxClientsManager.authorizedClient!.files.upload(path: "/test.pdf", input: data!) .response { response, error in if let response = response { print(response)…
-
This is handled automatically, and is not exposed/controllable via the API.
-
The API doesn't distinguish between files and folders in DeletedMetadata, but I'll be sure to pass this along as a feature request. For reference though, a deleted entry just indicates that whatever was at that path was deleted, and at different points in time, a single path could have been either a file and folder. You…
-
Ideally, we'll be able to solve the issue on our side so you don't need to implement the workarounds mentioned in your StackOverflow post, but I unfortunately don't have an update on a fix right now.
-
Hi Mark, you can use the move method to rename files or folders.
-
Apologies, this is still hard to follow without seeing the actual API call code, that is, seeing what API endpoints you're calling, and seeing the output you're getting, along with an explanation of the output you're expecting to get. For example, are you only calling the /files/create_folder endpoint? That endpoint only…
-
Thanks for the post! That's correct, the Paper API doesn't offer a way to create/upload documents. I can't make any promises, but I'm sending this along as a feature request.
-
I'm not sure I follow. Can you share the code and output showing this? Thanks in advance!
-
When making an API call like this that takes no parameters, you can do it one of two ways: * Don't supply any request body, and accordingly omit the Content-Type request header. * Supply just "null" as the request body, and submit the Content-Type request header as "application/json". As you have it, you're submitting a…
-
To clarify, the Dropbox Business API actually also has both v1 and v2 versions. It sounds like you may be talking about the difference between the Dropbox Business API and the Dropbox API though. In short, the Dropbox API offers functionality available to any kind of Dropbox account (Basic, Pro, or Business), such as…
-
The difference in response format, of JSON versus text, is expected in these different cases. If the ID has the right format, the API will look it up, and return an error if it isn't found. If the ID doesn't have the right format, e.g., it's the wrong length, it will fail validation, and the API won't bother trying to look…
-
The documentation for /2/files/upload_session/append_v2 describes the close parameter as: "close Boolean If true, the current session will be closed, at which point you won't be able to call upload_session/append_v2 anymore with the current session. The default for this field is False." That is, you can't add more data to…
-
The specifics will depend on your system, what language, what library/SDK, if any, you're using etc., but in general you'd use the local path you access the local file using whatever file access API your programming language supplies, and put the read data in the upload API call.
-
Thanks for elaborating! I don't have a good solution for you unfortunately, but I've sent this along a feature request, and the context is useful.
-
The Dropbox webhook challenge string doesn't contain a BOM, so the Dropbox webhooks service doesn't expect one in the echoed string. That being the case, it does look like something on your side is adding it. Unfortunately, that sounds like an issue with Node or your code itself, so I'm afraid I can't offer much insight.…
-
When you upload a file to Dropbox using the Dropbox API, it will create the file in Dropbox, if it doesn't already exist. (If it does already exist, the API can also update the file with the new data.) That is unrelated to the state of your local filesystem. When making the upload API call, you can supply data from…
-
Thanks for confirming that. I'm glad to hear this is sorted out. The OAuth endpoints are a little different than the API endpoints, so I'll ask the team to clarify the documentation at least.
-
Hi Douglas, it sounds like you have this right. When uploading a file, parent folders are automatically created if they don't already exist, so you don't need to explicitly create them first. The create_folder functionality exists so that you can create folders explicitly if you need them, without uploading any files. I'm…
-
I can't seem to find if/when we accepted JSON on this endpoint. Are you sure this previously worked with that content type? In any case, x-www-form-urlencoded is the right way to call this. Is that working for you?