IPWorks Cloud 2020 Java Edition

Questions / Feedback?

CreateLink Method

Creates a resource sharing link.

Syntax

public String createLink(boolean readOnly);

Remarks

This method creates and returns a sharing link for the resource currently selected by RemoteId or RemotePath. 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);

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Java Edition - Version 20.0 [Build 8265]