Retrieving a list of locations

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

https://api.sendflow.pl/v1/locations/<YOUR_WEBSITE_UID>

PHP example

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

Bash example

curl --include \
--header "Authorization: Basic <YOUR_API_KEY>" \
https://api.sendflow.pl/v1/locations/<YOUR_WEBSITE_UID>

Response example

[
{
"cityName": "Warsaw",
"count": 78
},
{
"cityName": "Paris",
"count": 56
}
]