Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from filesystem-based Dropbox use to OAuth API #72

Open
fwenzel opened this issue Jan 21, 2015 · 2 comments
Open

Switch from filesystem-based Dropbox use to OAuth API #72

fwenzel opened this issue Jan 21, 2015 · 2 comments

Comments

@fwenzel
Copy link
Owner

fwenzel commented Jan 21, 2015

Dropbox has a Core API and a Python library to go with it: https://www.dropbox.com/developers/core/start/python

Now that the public folder is not supported anymore, we can probably just talk straight to the API, and upload the screenshot files that way, then generate and use a share URL. That'd also enable the path inside Dropbox to be completely arbitrary.

@fwenzel
Copy link
Owner Author

fwenzel commented Jan 21, 2015

Note, for extra credit we can request a URL like:
https://www.dropbox.com/s/hmfa6o6zom5pkol/fred-glasshole.png

and replace the domain, so that it links straight to the file again:
https://dl.dropboxusercontent.com/s/hmfa6o6zom5pkol/fred-glasshole.png

The "custom domain" feature would have to maintain at least the share code, so instead of:
http://example.com/blah.png
we'll have to do:
http://example.com/s/abcd1234/blah.png.

But at least this would be future proof.

@fwenzel
Copy link
Owner Author

fwenzel commented Jan 21, 2015

CC @jbudd83 FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant