https://push-api.sare.pl/v1/segments/<YOUR_WEBSITE_UID>
$url = "https://push-api.sare.pl/v1/segments/<YOUR_WEBSITE_UID>";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: Basic <YOUR_API_KEY>']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
curl --include \
--header "Authorization: Basic <YOUR_API_KEY>" \
https://push-api.sare.pl/v1/segments/<YOUR_WEBSITE_UID>
[
{
"name": "Mobile Users",
"created": 1569916221
},
{
"name": "Subscribers from last 7 days",
"created": 1569961234
}
]