Comments
-
Lots of things about that code look weird. Try this instead: <!DOCTYPE html><html lang="en"> <head> <meta charset="utf-8"> <title>Saver</title> <script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="kyljf8vcbai3kc7"></script> </head> <body> <a…
-
You can find the OS X Core SDK here: https://www.dropbox.com/developers/core/sdks/osx, and the Sync SDK here: https://www.dropbox.com/developers/sync/sdks/osx. Both are pretty similar to their iOS counterparts... do you have any specific questions or issues you've encountered?
-
No. Core API v1 will continue to work as-is.
-
www.dropbox.com/1/oauth2/authorize should only be accessed by a user, so I'm confused as to why your code is issuing a POST request to it at all. I've never used Spring, so I'm not really set up to help debug this. Perhaps you can get better help on a Spring forum?
-
Yes, you'd need to open each file (to download it or access a cached copy), and then add each to your zip file individually. I think the difference that's surprising you as compared to iCloud Drive (from your description) is that the Sync API doesn't proactively maintain local copies of files in Dropbox. It does cache them…
-
That's the redirect I mentioned. I would strongly recommend looking at the Location header rather than trying to parse the returned HTML. The header should contain the same URL but not require any fragile parsing. I don't have any direct experience with Corona SDK, but I'd agree that the…
-
You shouldn't be using a POST... just a GET. You might want to use ?raw=1 instead of ?dl=1, but they're similar. The response should be a redirect. Depending on what method/library you're using to fetch the URL, it may follow the redirect automatically. If it doesn't, you can do it yourself. You'll get a 302 response with…
-
Using ?dl=1 should indeed cause the file to get downloaded (after a redirect). What's the issue you're running into?
-
Because Dropbox does a database lookup for each request, our bearer tokens are immediately revocable by code or by the user (via https://www.dropbox.com/account/security). We reviewed our OAuth 2 implementation with respect to the issues raised in that Stack Overflow answer as well as many other sources, and we're…
-
See https://www.dropbox.com/developers/support#token-expiration. Access tokens effectively don't expire.
-
Richard, I'm hoping to add such a feature to API v2.
-
Is the idea that you want to copy files from other users' Dropboxes into your own? If so, you could use https://www.dropbox.com/developers/webhooks to listen for when they make file changes and then https://www.dropbox.com/developers/core/docs#copy_ref and https://www.dropbox.com/developers/core/docs#fileops-copy to copy…
-
I assume that when you pass an invalid authorization code to finish, it raises an exception. So wrap the call in a try/catch and handle that exception.
-
Do you mean something like [testTbl query:query error:nil]? In any case, the query method only supports equality, so there's no way to have it do the query you want. You'll just need to loop over all the records yourself. (Everything's local and in memory, so this is quite efficient and roughly what the query method itself…
-
To clarify what Greg said, a space is not an allowed character in a URL. If your code is sending URLs with unescaped spaces in them, then you have a bug, which I'd strongly encourage you to fully fix. If all you did was special-case this one character (a space), you're quite likely to run into more issues when you…
-
Ranjodh, can you share the code that actually makes the request? It looks like that library just returns a URL to you, and I suspect there's an error in the code that escapes the URL and makes the HTTP request. Maybe you can share the relevant part of your code? Denys, similarly, you'll need to share the code you're using…
-
I can't reproduce this error. Here's what happens when I try it: $ http get "https://api.dropbox.com/1/metadata/auto/Test test.txt" 'Authorization:Bearer <REDACTED>'HTTP/1.1 200 OK...{"read_only": false, "revision": 47485, "bytes": 4, "thumb_exists": false, "rev": "b97d10f8d89e", "modified": "Thu, 02 Apr 2015 15:43:00…
-
If you want to share the whole folder with another user, you can't do that. (You can't share app folders.) But you can create read-only "share links" for the files in that folder (or the whole folder) through the normal Dropbox UI or programmatically via https://www.dropbox.com/developers/core/docs#shares.
-
Just give them the app. If it's a web app, tell them the URL. If it's a command-line app, just give them a copy of the code and ask them to run it. (In other words, give them the app the same way you would if it didn't use Dropbox.)
-
When they use your app for the first time, they'll authorize it (via OAuth), and then an app folder will be created in their Dropbox account.
-
"it should not be too hard to make this work on Apps folders too" You'd be surprised. :-)
-
There are no immediate plans to change this. App folders (and subfolders) cannot be shared. But we are certainly tracking this as a feature request.
-
You might want to start here to learn about the API: https://www.dropbox.com/developers.
-
Did you construct the right OAuth signature after changing the URL? (This error sounds like a bad OAuth signature.) Also, is there a reason you're using OAuth 1 and HMAC signatures? OAuth 1 with PLAINTEXT signatures is easier to work with, and OAuth 2 is even easier. Also,…
-
InF B, /1/files/auto/dropbox/folder/left.jpg looks wrong. Based on your description of the location of the file, shouldn't that be /1/files/auto/folder/left.jpg (no "/dropbox")?
-
Does your app have "Full Dropbox" or "App folder" permission? In the app folder case, the root of your paths refers to the app folder, so /files/auto/Images/thankyou.jpg will look for a file in /Dropbox/Apps/<your app name>/Images/thankyou.jpg. It might help if you make a metadata call so you can see what's actually in…
-
Bob, please see https://blogs.dropbox.com/developers/2015/04/deprecating-the-sync-and-datastore-apis/ for details on the deprecation. To directly answer your question, no, it won't stop working.
-
Definitely let us know if Apple rejects your app due to a lack of bitcode support. (If it turns out to be a requirement, we'll likely add bitcode support to the SDK.) Thanks for bearing with us through this!
-
That's all I could find too. In that case, given that the Sync API is deprecated and there's a workaround (disabling bitcode support), I don't think we're going to add bitcode support to the Sync API. Is there a reason your keen on supporting bitcode in your app? How important is it to you?
-
I'm having trouble figuring out when bitcode is required. I know that it's required for watchOS apps, but it looks like it's optional for iOS apps. Is it actually required for OS X 10.11? I'd love a pointer to an official source saying that it will be required for OS X. Otherwise it's going to be hard to justify adding…