Device solutions
End to end solutions
Product accelerators
Get Started
APIs
IoT Devices
The Node.js SDK allows you to retreive favorite files and folders, as well as add and remove files and folders from favorites.
favorite allows you to add a file to favorites.
favorite
Code Sample
cloud.favorite{ uri: uri, //retrieved from fullview or metadata calls success: function(resp) { }, });
getFavorites allows you to retrieve favorite files and folders.
getFavorites
cloud.getFavorites({ success: function(resp) { var files = resp.body.favorites.file; var folders = resp.body.favorites.folder; }, });
unfavorite allows you to remove a file or folder from favorites.
unfavorite
cloud.unfavorite({ uri: uri, //retrieved from fullview or metadata calls success: function(resp) { }, });
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.