create_link Method
Creates a resource sharing link.
Syntax
def create_link(read_only: bool) -> str: ...
Remarks
This method creates and returns a sharing link for the resource currently selected by remote_id or remote_path. The ReadOnly parameter controls whether the link provides view-only or editing access to the resource in question.
For OneDrive for Business and SharePoint Online resources, the CreateLinkScope configuration setting can also be used to control the access scope used to create the link.
// Create a read-only shared link for the given file. onedrive.RemotePath = "/work_stuff/serious_business/best_cat_pictures.zip"; string sharingUrl = onedrive.CreateLink(true);