cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[java sdk v2] shareable url

[java sdk v2] shareable url

Victor V.3
Explorer | Level 3

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

1 Accepted Solution

Accepted Solutions

Re: [java sdk v2] shareable url

Greg-DB
Dropboxer

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).

View solution in original post

2 Replies 2

Re: [java sdk v2] shareable url

Greg-DB
Dropboxer

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).

View solution in original post

Re: [java sdk v2] shareable url

Victor V.3
Explorer | 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

Who's talking

Top contributors to this post

  • User avatar
    Victor V.3 Explorer | Level 3
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?