Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
lezan
3 years agoNew member | Level 2
Correct way to use "add_file_member" endpoint if I need to share a file with a new email
Hello,
I am looking for a solution to my problem.
I am still in a testing stage, so I am open to different solution.
I need to share a file with only users who subscribe to a form. They subscri...
lezan
3 years agoNew member | Level 2
Hello @Greg-DB,
thanks for the fast reply.
I mostly get all, but still I do not quite understand OAuth process and why I need it.
Let me get you an idea about my needs and flow:
1. User land on a page and submit a form with his email.
2. I handle the request with an API function, make a call to the Dropbox endpoint and share the file (I am the owner of the file) with the new email.
3. Send an email to the user with the download link.
I do not want the user to login/using their credentials, that's need to be transparent to the final user. Doesn't OAuth implicitly require the user to follow a process with their credentials to be authorized?
Thanks for the answer!
Здравко
3 years agoLegendary | Level 20
lezan wrote:...
2. I handle the request with an API function, make a call to the Dropbox endpoint and share the file (I am the owner of the file) with the new email.
3. Send an email to the user with the download link.
...
Hi lezan,
Hm...🤔 Can you clarify, why actually do you need both ways? In point 2 you're inviting a Dropbox user to shared file. In point 3 you're sending to person download link. They are 2 different way to do the (almost) same thing. In point 2, a Dropbox account (identified with the supplied email) is expected from recipient and login is expected in this context (the file gets up in the recipient account). In point 3 recipient doesn't need any Dropbox account, but on further file' changes re-download is needed (for most recent file version) - automatic sync is impossible. That's it. 😉 Choose what best matches your idea.
lezan wrote:... Doesn't OAuth implicitly require the user to follow a process with their credentials to be authorized?
...
OAuth is needed for you, not to the recipient! It's the only way to receive refresh token and, in this context, long term access. Otherwise, as Greg noted before, your access token will always expire 4 hours or so after generation.
Hope this sheds some light.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!