Retrieving a list of websites

To retrieve a list of websites, submit a GET request to:

https://push-api.sare.pl/v1/websites

PHP example

$url = "https://push-api.sare.pl/v1/websites";

$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);

Bash example

curl --include \
     --header "Authorization: Basic <YOUR_API_KEY>" \
     https://push-api.sare.pl/v1/websites

Response example

[
  {
    "created": 1567758267,
    "uid": "https-website1-pl",
    "website": "https://website1.pl"
  },
  {
    "created": 1569175653,
    "uid": "https-website2-pl",
    "website": "https://website2.pl"
  }
]

Last updated