API

29.05.2018 ·

, API- . 

:
1. (. )
2. JSON ( UTF8)
3.

PHP:
$url = 'https://rock.ua/api/afisha.php?date=8-6-2018'; //
$ch = curl_init(); // PHP CURL
curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$contents = curl_exec($ch); //
curl_close($ch);
$arr = json_decode($contents); //

. :
https://rock.ua/api/afisha.php?date=DD-MM-YYYY&lang=LL

:
https://rock.ua/api/afisha.php?date=8-6-2018 //䳿 2018;
https://rock.ua/api/afisha.php?date=8-6-2018&lang=ru //䳿 2018;
https://rock.ua/api/afisha.php?club=_'_
https://rock.ua/api/afisha.php?band=_'_

, : info@rock.kiev.ua

ֲ
Gibson
Gibson
13.05.2018

Gibson, 1984 , 170,000 80 .

16.04.2018

, , ˳ , .