IPWorks Cloud 2020 PHP Edition

Questions / Feedback?

CreateLink Method

Creates a shared link.

Object Oriented Interface

public function doCreateLink($resourceid);

Procedural Interface

ipworkscloud_box_do_createlink($res, $resourceid);

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");

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