I am wondering if there is a way that the Dropbox API can be utilized to grant access rights globally for an app.
Here is my scenario. I am developing a Java application that will allow a teacher to have his students submit assignments. The application will perform a plethora of tasks, but then it will upload the file to the teacher's Dropbox account.
I have been able to get the application to authenticate and upload to each specific user's Dropbox/Apps/LabTab folder, but is there a way that I can make it so that the application always connects to the teacher's dropbox and uploads to his Dropbox/Apps/LabTab folder?
I guess an easier way of stating it is to say that I want a way for a user to grant global access to unauthenticated requests from my single application.
Dropbox today rolled out a new feature that will allow those without an account to share files with Dropbox users. Called “File Requests,” the option gives anyone you ask the ability to upload files into your Dropbox account, into a folder of your choosing.
The powerful, yet simple, API allows you to manage and control content programmatically and extend Dropbox capabilities in new and powerful ways. This guide will take you through the basic steps required to get up and running and create a simple file organization app to help organize files within your Dropbox account.
Basically, if they shared a folder with you, you can upload files into it up to the limit of your own space. To send them a file that's larger than your space, just have them send you a File Request instead. You don't need an account to send a file through a request.
I'm doing something similar in my web application, where project members have common place for documents in project creator/owner dropbox application directory, when he authorizes this application.
You also (probably) should do this on app level. If Your application is j2se based (desktop application) You'll have to hardcode teacher's access token into application, or (better) do some web interface, which will connect each teacher's access token with teacher's resources (Dropbox/Apps/YoursApplication per teacher). In this scenario, end users (probably students) will be able to upload/download/act on teachers resources, through yours application AS this concrete teacher.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With