Простой GET-запрос.
Параметры:
url — длинный URL (обязателен)type — json или plaintextПримеры:
# Только короткий URL в ответе https://145-63-140-52.netherlands-3.vps.ac/api?url=https://example.com # JSON-ответ https://145-63-140-52.netherlands-3.vps.ac/api?url=https://example.com&type=json
Ответ (json):
{
"short_url": "https://145-63-140-52.netherlands-3.vps.ac/Uxxxxxx",
"code": "Uxxxxxx"
}