@@ -34,9 +34,9 @@ file's contents, upload new versions, and perform other common file operations
34
34
- [ Delete a Previous Version of a File] ( #delete-a-previous-version-of-a-file )
35
35
- [ Lock a File] ( #lock-a-file )
36
36
- [ Unlock a File] ( #unlock-a-file )
37
- - [ Create a Shared Link] ( #create-a-shared-link )
37
+ - [ Create a Shared Link Download URL ] ( #create-a-shared-link-download-url )
38
38
- [ Find a File for a Shared Link] ( #find-a-file-for-a-shared-link )
39
- - [ Create a Shared Link] ( #create-a-shared-link-1 )
39
+ - [ Create a Shared Link] ( #create-a-shared-link )
40
40
- [ Update a Shared Link] ( #update-a-shared-link )
41
41
- [ Get a Shared Link] ( #get-a-shared-link )
42
42
- [ Remove a Shared Link] ( #remove-a-shared-link )
@@ -627,23 +627,24 @@ print('File "{0}" has been unlocked!'.format(updated_file.name))
627
627
628
628
[ unlock ] : https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.file.File.unlock
629
629
630
- Create a Shared Link
630
+ Create a Shared Link Download URL
631
631
--------------------
632
632
633
633
A shared link for a file can be generated by calling
634
- [ ` file.get_shared_link(access=None, etag=None, unshared_at=None, allow_download=None, allow_preview=None, password=None) ` ] [ get_shared_link ] .
634
+ [ `file.get_shared_link(access=None, etag=None, unshared_at=None, allow_download=None, allow_preview=None,
635
+ password=None, vanity_name=None)`] [ get_shared_link_download_url ] .
635
636
This method returns a ` unicode ` string containing the shared link URL.
636
637
637
638
<!-- sample put_files_id add_shared_link -->
638
639
``` python
639
640
file_id = ' 11111'
640
641
641
- url = client.file(file_id).get_shared_link( )
642
- print (' The file shared link URL is: {0} ' .format(url))
642
+ url = client.file(file_id).get_shared_link_download_url( access = ' open ' , vanity_name = " my-unique-vanity-name " )
643
+ print (' The file shared link download URL is: {0} ' .format(url))
643
644
```
644
645
645
- [ get_shared_link ] :
646
- https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.item.Item.get_shared_link
646
+ [ get_shared_link_download_url ] :
647
+ https://box-python-sdk.readthedocs.io/en/latest/boxsdk.object.html#boxsdk.object.file.File.get_shared_link_download_url
647
648
648
649
Find a File for a Shared Link
649
650
-----------------------------
@@ -661,7 +662,8 @@ Create a Shared Link
661
662
--------------------
662
663
663
664
A shared link for a file can be generated by calling
664
- [ ` file.get_shared_link(access=None, etag=None, unshared_at=None, allow_download=None, allow_preview=None, password=None) ` ] [ get_shared_link ] .
665
+ [ `file.get_shared_link(access=None, etag=None, unshared_at=None, allow_download=None, allow_preview=None,
666
+ password=None, vanity_name=None)`] [ get_shared_link ] .
665
667
This method returns a ` unicode ` string containing the shared link URL.
666
668
667
669
<!-- sample put_files_id add_shared_link -->
@@ -678,8 +680,8 @@ Update a Shared Link
678
680
--------------------
679
681
680
682
A shared link for a file can be updated by calling
681
- [ `file.get_shared_link(access=None, etag=None, unshared_at=None,
682
- allow_download =None, allow_preview=None, password =None)`] [ update_shared_link ]
683
+ [ `file.get_shared_link(access=None, etag=None, unshared_at=None, allow_download=None, allow_preview=None,
684
+ password =None, vanity_name =None)`] [ update_shared_link ]
683
685
with an updated list of properties.
684
686
685
687
This method returns a ` unicode ` string containing the shared link URL.
0 commit comments