$ curl https://api.intercom.io/tags \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept: application/json'{
"type": "list",
"data": [
{
"type": "tag",
"name": "Beta User",
"id": 1
},
{
"type": "tag",
"name": "Amazing User",
"id": 2
},
{
"type": "tag",
"name": "Epic User",
"id": 3
}
]
}intercom.tags.all.each { ... }<?php
$tags= $intercom->tags->getTags([]);
foreach ($tags->tags as $tag) {
print "id:".$tag->id." name:".$tag->name."\n";
}?>TagCollection tags = Tag.list();
while (tags.hasNext()) {
out.println(tags.next().getId());
}You can list all tags.
A list of tag objects.
| Attribute | Type | Description |
|---|---|---|
| type | string | value is 'list' |
| data | array | A list of tag objects |