Retrieving a list of subscribers
To retrieve a list of subscribers, submit a GET request to:
1
https://push-api.sare.pl/v1/subscribers/<YOUR_WEBSITE_UID>
Copied!
Query parameters
Description
limit
Number of entries (Optional)
offset
Indicates entry number to start from (Optional)
segment
From specified segment (Optional)

PHP example

1
$url = "https://push-api.sare.pl/v1/subscribers/<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/subscribers/<YOUR_WEBSITE_UID>
Copied!

Response example

1
[
2
{
3
"uid": "426bf38b8d799f028aa1a7aadde10272",
4
"subscribed": 1568127299,
5
"visited": 1568127328,
6
"sessions": 1,
7
"visits": 2,
8
"lastActive": 1568127398,
9
"language": "pl",
10
"city":"Kielce",
11
"country":"Poland",
12
"system": "macos",
13
"browser": "firefox",
14
"device": "desktop",
15
"sent": 47,
16
"delivered": 1,
17
"clicked": 1,
18
"test": 1
19
},
20
{
21
"uid": "ed56eb3d462ff94abcdf5822e4171d0d",
22
"subscribed": 1569436489,
23
"visited": 1569436592,
24
"sessions": 1,
25
"visits": 4,
26
"lastActive": 1569876317,
27
"language": "pl",
28
"city":"Kielce",
29
"country":"Poland",
30
"system": "windows",
31
"browser": "opera",
32
"device": "desktop",
33
"sent": 23,
34
"delivered": 2,
35
"clicked": 0,
36
"test": 0
37
}
38
]
Copied!
Copy link
Contents