About Favorites

About Favorites

Contents

Introduction

The Node.js SDK allows you to retreive favorite files and folders, as well as add and remove files and folders from favorites.

Example

favorite

favorite allows you to add a file to favorites.

Code Sample

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

getFavorites

getFavorites allows you to retrieve favorite files and folders.

Code Sample

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

unfavorite

unfavorite allows you to remove a file or folder from favorites.

Code Sample

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

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.