Skip to content
This repository has been archived by the owner on Dec 30, 2020. It is now read-only.

Pins search return empty result #196

Closed
woozyfr opened this issue Oct 19, 2016 · 1 comment
Closed

Pins search return empty result #196

woozyfr opened this issue Oct 19, 2016 · 1 comment

Comments

@woozyfr
Copy link

woozyfr commented Oct 19, 2016

Pins search return empty result.
My code (before it worked):
require_once("vendor/autoload.php"); use seregazhuk\PinterestBot\Factories\PinterestBot; $bot = PinterestBot::create(); var_dump($bot->pins->search("car", 10));

My Result :
object(Generator)#11 (0) { }

@seregazhuk
Copy link
Owner

seregazhuk commented Oct 19, 2016

It is not an empty result, it is a generator object. It is said in the docs, how to use search methods.
Use foreachloop or iterator_to_array function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants