CreateLink Method
Creates a shared link.
function CreateLink(ResourceId: String): String;
Remarks
This method creates a shared link for the resource specified by ResourceId. The URL of the shared link is returned.
Only one shared link may be active at a time for each resource; calling this method for a resource that already has an active shared link will update the shared link's settings without changing its URL.
The following configuration settings may be used to configure the shared link:
// Create a password-protected shared link for the given file.
box.Config(
"CreateLinkPassword=password"
);
string
sharingUrl = box.CreateLink(
"f:09876"
);