Device solutions
End to end solutions
Product accelerators
Get Started
APIs
IoT Devices
The JavaScript SDK allows you to retrieve, create, and delete shares. The following cde samples can help you get started with tags.
Use this code sample to create shares.
Code Sample
thingspace.cloud.share({ name: "my new share", resources: [{ "name" : "share file one", "location" : uri }], success: function(resp) { var share = resp.body.share; }, });
This code sample results in the listing of all shares for a file or folder.
thingspace.cloud.getShares({ virtualfolder: "VZMOBILE", success: function(resp) { var shares = resp.body.shares.share; }, });
Use this code sample to remove shares.
thingspace.cloud.unshare({ shareUid: shareUid, success: function(resp) { //file has been unshared }, });
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.