Skip to content

Commit 8359675

Browse files
committed
Merge pull request #115 from Frencil/download_url_documentation
Add get_shared_link_download_url() documentation/example to README
2 parents fb4f243 + 4839aad commit 8359675

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,20 @@ Create subfolder
128128
# creates folder structure /L1/L2/L3
129129
client.folder(folder_id='0').create_subfolder('L1').create_subfolder('L2').create_subfolder('L3')
130130
131-
Get shared link
132-
~~~~~~~~~~~~~~~
131+
Get shared link (file or folder)
132+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
133133

134134
.. code-block:: python
135135
136136
shared_link = client.folder(folder_id='SOME_FOLDER_ID').get_shared_link()
137137
138+
Get shared link direct download URL (files only)
139+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140+
141+
.. code-block:: python
142+
143+
download_url = client.file(file_id='SOME_FILE_ID').get_shared_link_download_url()
144+
138145
Get file name
139146
~~~~~~~~~~~~~~~
140147

0 commit comments

Comments
 (0)