cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

srmklive/flysystem-dropbox-v2 - get dropbox share link

Explorer | Level 4

I am using srmklive/flysystem-dropbox-v2 package with a Laravel 5.3 installation. My files are getting stored in dropbox however I'm not able to retrieve the shareable link of these dropbox files. Also, I want that the link should be visible to guest users too. Does anyone know how to go about this?

1 Accepted Solution

Accepted Solutions
Highlighted

Re: srmklive/flysystem-dropbox-v2 - get dropbox share link

Dropboxer
Dropboxer

[Cross-linking for reference: https://stackoverflow.com/questions/44767850/srmklive-flysystem-dropbox-v2-get-dropbox-share-link-on... ]

 

The getTemporaryLink method in the srmklive/flysystem-dropbox-v2 library corresponds to the /2/files/get_temporary_link endpoint on Dropbox API v2.

 

If you want a shareable link instead of a temporary link, you should instead use /2/sharing/create_shared_link_with_settings. It looks like /2/sharing/create_shared_link_with_settings is unfortunately not implemented in srmklive/flysystem-dropbox-v2's DropboxClient.php though.

View solution in original post

4 Replies 4
Highlighted

Re: srmklive/flysystem-dropbox-v2 - get dropbox share link

Dropboxer
Dropboxer

[Cross-linking for reference: https://stackoverflow.com/questions/44767850/srmklive-flysystem-dropbox-v2-get-dropbox-share-link-on... ]

 

The getTemporaryLink method in the srmklive/flysystem-dropbox-v2 library corresponds to the /2/files/get_temporary_link endpoint on Dropbox API v2.

 

If you want a shareable link instead of a temporary link, you should instead use /2/sharing/create_shared_link_with_settings. It looks like /2/sharing/create_shared_link_with_settings is unfortunately not implemented in srmklive/flysystem-dropbox-v2's DropboxClient.php though.

View solution in original post

Highlighted

Re: srmklive/flysystem-dropbox-v2 - get dropbox share link

Explorer | Level 4

Thanks for the info Greg.

 

Do the following packages extend the functionality that I'm looking for?

1. https://github.com/spatie/dropbox-api

2. https://github.com/spatie/flysystem-dropbox

 

If not, can you please suggest any alternative package that is compatible with Laravel 5.3 ?

Highlighted

Re: srmklive/flysystem-dropbox-v2 - get dropbox share link

Dropboxer
Dropboxer

The spatie/flysystem-dropbox library doesn't seem to have it:

 

https://github.com/spatie/flysystem-dropbox/search?utf8=%E2%9C%93&q=create_shared_link_with_settings...

 

The spatie/dropbox-api library does seem to:

 

https://github.com/spatie/dropbox-api/search?utf8=%E2%9C%93&q=create_shared_link_with_settings&type=

 

In there, it seems to be the createSharedLinkWithSettings method:

 

https://github.com/spatie/dropbox-api/blob/b1e1b6f61d89a09a0b1c0a506bb20fbce9bb19da/src/Client.php#L...

 

I don't know of any other Laravel libraries off hand though.

Highlighted

Re: srmklive/flysystem-dropbox-v2 - get dropbox share link

Explorer | Level 4

Thanks Greg! My problem was solved by using both the packages together i.e.

https://github.com/spatie/flysystem-dropbox & https://github.com/spatie/dropbox-api

 

For anyone else who has similar requirements, the above 2 packages are supported for PHP 7, however for PHP 5 you'll have to use https://github.com/srmklive/flysystem-dropbox-v2

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?