ThePHPHero

Results 2 comments of ThePHPHero

I am having this exact same issue. If I do a var_dump($response) I notice that an array is returned instead of an object. I guess that is where the problem...

I kind of fixed this by using $response in the foreach loop. So instead of $events = $response->results; I just did a foreach ($response as $event)