About Favorites

About Favorites

Contents

Introduction

The JavaScript SDK allows you to mark files and folders as favorites, as well as add and remove files and folder from favorites.

Examples

favorite

favorite method allows you to add files and folders to favorites.

Code Sample

thingspace.cloud.favorite{
		uri: uri, //retrieved from fullview or metadata calls
		success: function(resp) {
		
		},
	});

getFavorites

getFavorites method allows you to retrieve favorite files and folders.

Code Sample

thingspace.cloud.getFavorites({
		success: function(resp) {
			var files = resp.body.favorites.file;
			var folders = resp.body.favorites.folder;
		},
	});

unfavorite

unfavorite method allows you to remove files and folders from favorites.

Code Sample

	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.