getTags - Methods - Items API

Items API Methods

getTags()

Retrieves all tags for Items in the current Activity.

You would want to use this method so that you can perform advanced content debugging your test environments, for example.

Note getTags() requires the retrieve_tags initialization option to be set to true.

Examples

// Standard usage
var tags = itemsApp.getTags();
console.log(tags);

// Return tags with TagsV0 structure
var tagsV0 = itemsApp.getTags(true);
console.log(tagsV0);

Arguments

  • format boolean

    Optional. Passing true for the format returns the (deprecated) TagsV0 structure.

Return value

Type mixed

See Understanding Tag Formats for Content Creation and Filtering for more information on the various Tag formats.

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.