dbxcli icon indicating copy to clipboard operation
dbxcli copied to clipboard

Request: Add `dropbox.py` sharelink option

Open coatless opened this issue 6 years ago • 7 comments

Could you please add to dbxcli a way to obtain the share link of a given file. e.g.

dbxcli sharelink FILE

This was previously in the headless dropbox cli given as dropbox.py. I would like to switch over from using dropbox.py to dbxcli, but my main usage case is a way for the CLI to generate sharing links for files. c.f. dropcli R package

coatless avatar Aug 30 '17 22:08 coatless

I would love to see this too. Is there a way to make this happen? If you could point me in the right direction, I might take a look at it myself.

banool avatar Dec 14 '17 08:12 banool

@banool I believe the sharelink code can be found in:

https://www.dropbox.com/download?dl=packages/dropbox.py

coatless avatar Dec 16 '17 16:12 coatless

Looks like the code for this can be found here:

https://github.com/dropbox/nautilus-dropbox/blob/48c2d695ab52f36ab1895ce42beacf458aa2700b/dropbox.in#L1022-L1045

coatless avatar Dec 16 '17 16:12 coatless

@coatless just to make sure I understand correct, you want an option in dbxcli to obtain the link you can use to share a file or a folder. Is that right?

This is actually pretty easy to do, you can even work from an existing PR: https://github.com/dropbox/dbxcli/pull/41 https://github.com/dropbox/dbxcli/pull/40

LMK if you want to take a stab. Otherwise I'll try to implement sometime in the next week.

diwakergupta avatar Dec 16 '17 20:12 diwakergupta

Awesome @diwakergupta, thanks for looking into this! Much easier for you than for me to learn the codebase and try it.

banool avatar Dec 18 '17 10:12 banool

I've put together a solution for this in #89.

banool avatar Jan 03 '18 02:01 banool

To anybody interested in that option:

https://github.com/dropbox/dbxcli/issues/113#issuecomment-667919621

biounix avatar Aug 03 '20 09:08 biounix