Retrieving a list of websites

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

https://api.sendflow.pl/v1/websites

PHP example

$url = "https://api.sendflow.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://api.sendflow.pl/v1/websites

Response example

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