Comments
-
Yes, sorry about that. We are genuinely still looking into it. Part of the reason we deprecated this particular SDK is that it's complex and hard to build. (Most of the code is in C++.) Given that we haven't done a build in quite a while, it's more difficult than you'd expect to get this built again with Bitcode support.
-
Yes, Brendan, I think you're in the group I described. Some others chiming in on the thread may not be in that group and are just confused about whether they need this.
-
Keep in mind this thread is about the deprecated Sync API, which won't be supported past October. You can use the Core API (which is open source), and the new Swift SDK we're building for API v2 already has a sample running on the Watch. Presumably the only people who need Bitcode support in the Sync API are developers who…
-
There's no way to see whether a person has downloaded a file. When you call https://www.dropbox.com/developers/core/docs#metadata, the modifier field will tell you who last modified each file in the shared folder. If you call https://www.dropbox.com/developers/core/docs#revisions on an individual file in the shared folder,…
-
Just set the Authorization header to Bearer <token>. The documentation doesn't mention this, because it's just how OAuth 2 works. BTW, I redacted the access token in your post, but just in case someone else saw it, you should make sure to disable it. Unlinking your app from the https://www.dropbox.com/account#security tab…
-
The -H is short for --header. This line adds an Authorization header with the value Bearer <access token>.
-
I suppose you could download the latest version via the API and do a file comparison with the one on local disk.
-
I just mean the address of your app, which is up to you and wherever you're hosting your app. (E.g., the address for Amazon is http://www.amazon.com.) It has nothing to do with the fact that your app has a Dropbox integration.
-
It depends on what kind of app it is. If it's a web app, tell them the URL. If it's a desktop app, send them a copy of it. If it's a mobile app, install it on their phone.
-
Once you've enabled additional users, you can just give your app to them for testing. You don't have to invite them in particular... the first 100 users to authorize your app will succeed.
-
You're not supposed to use your generated access token there. As the app says, you should go to the URL it gives you and authorize the app. You'll then receive an access code (not access token) that you need to copy/paste back into the app. BTW, I've redacted your access token, but you should probably unlink your app (from…
-
Are you sure you're entering the access code from dropbox.com properly? Also make sure you're only using the code you get once.
-
Change the name of your Python file. When you do import dropbox, Python is first noticing the file dropbox.py in the current directory and trying to import that. What you want it to actually do is import the Dropbox SDK, so rename your Python file to something other than dropbox.py, and things should work.
-
It's true that the Python SDK doesn't have anything specific in it for the Dropbox for Business API. If you're making calls on behalf of a team member, you need to attach the X-Dropbox-Perform-As-Team-Member header, which you can't do directly via the Python SDK. I'd recommend making your API calls manually via, e.g., the…
-
Well yes, you're adding target="_blank" to an anchor tag but then intercepting the click. :-) It looks like you're using dropbox.js to open the auth page. Take a look at https://github.com/dropbox/dropbox-js/blob/stable/guides/builtin_drivers.md, which Greg linked to in his first response. There you'll find the various…
-
You mean target="_blank", right? If that's not working for you, perhaps you can share your code, but it sounds like purely an HTML issue. The Dropbox API doesn't know or care whether you open the auth page in the same browser tab or a different one.
-
This should certainly be possible. What have you tried so far? http://dropbox.com/developers/webhooks or https://www.dropbox.com/developers/blog/63/low-latency-notification-of-dropbox-file-changes would be the right way to monitor the file for changes on the Dropbox side. I imagine Google has an API that would let you push…
-
The below blog post might help. It uses /longpoll_delta and /delta in a loop. (Code is in Python.) https://blogs.dropbox.com/developers/2013/11/low-latency-notification-of-dropbox-file-changes/
-
Yes. See https://www.dropbox.com/developers/core/docs#fileops-delete for the HTTP documentation, or check the documentation for the language you're using.
-
Alison, can you explain what you mean when you say "Dropbox's page with the app secret won't let you copy it to your clipboard?" What exactly did you try and what issue did you run into? (And what OS and browser were you using?) For me, I just need to click the "show" button to reveal the secret, and then I can highlight…
-
My guess would be that your app secret is incorrect. Make sure that the app secret you're using in your code (the second parameter to the DropboxOAuth2FlowNoRedirect constructor) matches the one found on the https://www.dropbox.com/developers/apps.
-
Cross-linking with http://stackoverflow.com/questions/31645523/download-file-from-dropbox-using-javascript-dropbox-api.
-
No, the permissions are documented https://www.dropbox.com/developers/reference/devguide#app-permissions, and we don't have a read-only permission.
-
This most likely means your app has "file type" permission, and the file type you picked doesn't include the extension of the file you're trying to write. You can check your app's permissions via the https://www.dropbox.com/developers/apps.
-
Sorry for the late reply on this thread! disable\_token should, as the documentation says, work with both OAuth 1 and OAuth 2. I would double-check to make sure you're using a valid OAuth 2 token (and properly authing the request via OAuth 2, typically an Authorization header value of "Bearer <token>". Kunal, as long as…
-
That user probably has more than one access token, and you only unlinked one of them.
-
The auth works the same way as any other Core API method. E.g. curl -X POST https://api.dropbox.com/1/disable_access_token -H "Authorization:Bearer <access token>"
-
This is not possible.
-
Do you consider two records with the same ID but different text to be "the same" or not? (Is it a "duplicate" for both to exist?) If the answer is "yes," then I think what you're doing should work well already. If the answer is "no," then you need to change your data model. (You should probably model editing an existing…
-
You may want to take a look at https://www.dropbox.com/developers/blog/84/initializing-data-in-datastores-with-getorinsert, which shows how to use getOrInsert to avoid duplicates. The basic idea is that you need to model your data in such a way that if two records are considered "duplicates," then they'll have the same…