seregazhuk/php-pinterest-bot

Get Boards Return Empty

flameblue59 opened this issue · 0 comments

Hi, I have problem while retreiving boards. Last time it works fine but suddenly just got empty board list. So, I cannot get board Id to post it.

I do into this following way

$bot = PinterestBot::create();
$result = $bot->auth->login($account['email'], $account['password']);
// add proxy
if(ISSET($account['proxyId'])) {
	$bot->getHttpClient()->useProxy($ip, $port);
}
if ($bot->user->isBanned()) {
	return array('status'=>'failed','notification'=>'Banned');
}
if (!$result) {
	return array('status'=>'failed','notification'=>'Login failed');
}
$boards = $bot->boards->forUser($account['username']); //got empty result

I tried to var_dump and here is the result
array(0) { }