Pinterest Bot for PHP v4.0.0 Release Notes
Release Date: 2016-06-12 // almost 8 years ago-
🔄 Changed:
- generator objects now return an entity for each iteration, not an array of entities. For example, to execGet search results there is no more need to make two nested loops:
foreach($bot->pins->search('cats') as $pin) { echo $pin['id'], "\n"; // ... } The same is true about getting followers/following/pins for the user or board and getting pins from source.