The Python SDK allows you to list, add, and remove a file or folder from favorites. The following examples provide detailed steps that describe how to use supported methods and include code samples to help you get started with favorites.
The following code sample shows you how to add a file or folder to favorites.
Code Sample
# cloud_file object returned from metadata or fullview calls
cloud.favorite(cloud_file.uri)
The following code sample shows you how to list favorite files and folders.
Code Sample
files, folders = cloud.favorites()
The following code sample shows you how to remove a file or folder from favorites.
Code Sample
# cloud_file object returned from metadata or fullview calls
cloud.unfavorite(cloud_file.uri)
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.