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