The JavaScript SDK allows you to retrieve, create, and delete tags. The following cde samples can help you get started with tags.
deleteTags
method allows you to remove tags.
Code Sample
thingspace.cloud.deleteTags({
uri: uri, //retrieved from fullview or metadata calls
success: function(resp) {
},
});
getTags
method allows you to add a tag to a file or folder.
Code Sample
thingspace.cloud.getTags({
path: path,
success: function(resp) {
},
});
updateTags
method allows you to update a tag for a file or folder.
Code Sample
thingspace.cloud.updateTags({
uri: uri, //retrieved from fullview or metadata calls
tags: "cat,animal,fur",
success: function(resp) {
},
});
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.