Retrieving a list of tags
To retrieve a list of tags, submit a GET request to:
1
https://push-api.sare.pl/v1/tags/<YOUR_WEBSITE_UID>
Copied!

PHP example

1
$url = "https://push-api.sare.pl/v1/tags/<YOUR_WEBSITE_UID>";
2
3
$ch = curl_init();
4
curl_setopt($ch, CURLOPT_URL, $url);
5
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic <YOUR_API_KEY>']);
6
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
7
$result = curl_exec($ch);
Copied!

Bash example

1
curl --include \
2
--header "Authorization: Basic <YOUR_API_KEY>" \
3
https://push-api.sare.pl/v1/tags/<YOUR_WEBSITE_UID>
Copied!

Response example

1
[
2
{
3
"tag": "firstTag",
4
"count": 78
5
},
6
{
7
"tag": "otherTag",
8
"count": 56
9
}
10
]
Copied!
Copy link
Contents