Hocam tırnak hatası yapmışım
Şu kısmı değiştirin
$img = $pins[$count]['image_large_url'];
Maalesef yine çalıştıramadım
Aşağıdaki gibi yapıyorum..
Bendeki Kod
<?php
require __DIR__ . '/../vendor/autoload.php';
use seregazhuk\PinterestBot\Factories\PinterestBot;
$bot = PinterestBot::create();
$pins = $bot->pins
->search('cats')
->take(5)
->toArray();
print_r($pins[0]);Ekledikten sonraki hali
<?php
require __DIR__ . '/../vendor/autoload.php';
use seregazhuk\PinterestBot\Factories\PinterestBot;
$bot = PinterestBot::create();
$pins = $bot->pins
->search('cats')
->take(5)
->toArray();
print_r($pins[0]);
for($i=0;$i<=$count;$i++){
//Eleman sayısı kadar döngüyü çalıştırıyoruz.
$img = $pins[$count]['image_large_url'];
echo '<img src="'.$img.'">';