Skip to content

Commit 5874933

Browse files
authored
Fix shared-link docs (#605)
1 parent 403d204 commit 5874933

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/usage/files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ This method returns a `unicode` string containing the shared link URL.
706706
<!-- sample get_files_id get_shared_link -->
707707
```python
708708
file_id = '11111'
709-
shared_link = client.file(file_id).shared_link
709+
shared_link = client.file(file_id).get().shared_link
710710
url = shared_link['download_url']
711711
```
712712

docs/usage/folders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ This method returns a `unicode` string containing the shared link URL.
241241
<!-- sample get_folders_id get_shared_link -->
242242
```python
243243
folder_id = '11111'
244-
shared_link = client.folder(folder_id).shared_link
244+
shared_link = client.folder(folder_id).get().shared_link
245245
url = shared_link['download_url']
246246
```
247247

@@ -505,4 +505,4 @@ with the ID of the folder lock.
505505
client.folder_lock(folder_lock_id='22222').delete()
506506
```
507507

508-
[delete_folder_lock]: https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.folder_lock.FolderLock
508+
[delete_folder_lock]: https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.folder_lock.FolderLock

0 commit comments

Comments
 (0)