https://www.googleapis.com/pagespeed...creenshot=true buradaki " final-screenshot " altındaki data kısmını almak istiyorum yani base64le kodlanmış resim urlsini
kullanılan kod bu rica etsem bu kodu düzenleybilir misiniz zahmet olmaz.
$url = $_POST["url"];
$screen_shot_json_data = file_get_contents("https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=$url&screenshot=true");
$screen_shot_result = json_decode($screen_shot_json_data, true);
$screen_shot = $screen_shot_result['final-screenshot']['data'];
$screen_shot = str_replace(array('_','-'), array('/', '+'), $screen_shot);
$screen_shot_image = "<img src=\"data:image/jpeg;base64,".$screen_shot."\" class='img-responsive img-thumbnail'/>";