Example List Tag Request
$ curl https://api.intercom.io/tags \
-H 'Authorization:Bearer <Your access token>' \
-H 'Accept: application/json'
{
"type": "tag.list",
"tags": [
{
"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 fetch the tags for an App by sending a GET
request to https://api.intercom.io/tags
.
Parameters
None.
Returns
A list of tag objects for the App.
Tag List
Attribute | Type | Description |
---|---|---|
type | string | value is 'tag.list' |
tags | array | A list of tag objects |