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

PHP example

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

Response example

1
[
2
{
3
"created": 1567758267,
4
"uid": "https-website1-pl",
5
"website": "https://website1.pl"
6
},
7
{
8
"created": 1569175653,
9
"uid": "https-website2-pl",
10
"website": "https://website2.pl"
11
}
12
]
Copied!
Copy link
Contents