Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Victor V.3
10 years agoExplorer | Level 3
[java sdk v2] shareable url
Hello,
The app I am working on is using dbx java sdk v1, and I started the migration to sdk v2.
Previously, in v1, the DbxClientV1 had:
- a method for creating a shareableUrl -> .createShareableUrl(path).
- a method for creating a temporaryDirectUrl -> .createTemporaryDirectUrl(path)
In DbxClientV2, i only found .getTemporaryLink(path), but i assume this is a replacement for the previous .createTemporaryDirectUrl(path).
I'd like to know how can i generate the shearable URL using sdk v2.
What alternatives do I have ?
thanks a lot,
-victor
That's correct, the new method for createTemporaryDirectUrl is getTemporaryLink.
For createShareableUrl, you'll want to use createSharedLinkWithSettings (and ListSharedLinks if a link already exists).
2 Replies
Replies have been turned off for this discussion
- Greg-DB10 years ago
Dropbox Community Moderator
That's correct, the new method for createTemporaryDirectUrl is getTemporaryLink.
For createShareableUrl, you'll want to use createSharedLinkWithSettings (and ListSharedLinks if a link already exists).
- Victor V.310 years agoExplorer | Level 3
Thanks for your reply.
I was lazy, looking only at the .files() property of the DbxClientV2.
I know realize there's more to explore -> .sharing().
My bad.
Not yet fully familiar with .v2.
-victor
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!