List
client.tags.list(TagListParams { pageSize, paginationToken } query?, RequestOptionsoptions?): TagsCursor<TagListResponse { createdAt, itemCount, ownerId, 2 more } >
GET/tags
List all tags in use for the given projectId
List
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const tagListResponse of client.tags.list()) {
console.log(tagListResponse.createdAt);
}{
"tags": [
{
"createdAt": "createdAt",
"itemCount": 0,
"ownerId": "ownerId",
"tagName": "tagName",
"updatedAt": "updatedAt"
}
],
"nextPaginationToken": "nextPaginationToken"
}Returns Examples
{
"tags": [
{
"createdAt": "createdAt",
"itemCount": 0,
"ownerId": "ownerId",
"tagName": "tagName",
"updatedAt": "updatedAt"
}
],
"nextPaginationToken": "nextPaginationToken"
}