seregazhuk / php-pinterest-bot

This PHP library will help you to work with your Pinterest account without using any API account credentials.
MIT License
416 stars 129 forks source link

Repin not found board #461

Closed yusufonur closed 5 years ago

yusufonur commented 5 years ago

Login and get board list. And get pins;

$trendingTopics = $this->bot->topics->explore(); $firstTopicId = $trendingTopics[0]['id']; $pins = $this->bot->pins->explore($firstTopicId)->toArray();

And first pin , repin ;

$this->bot->pins->repin($pinId, $boardId, $comment); $this->checkError();

but return error. => Board not found

yusufonur commented 5 years ago

I resolve problem. I define boardId int type but it want to string value. Change type to string and resolved.

e3restu commented 4 years ago

So how to get boardID? Is it same with boardname? Or something like pin id?

yusufonur commented 4 years ago

So how to get boardID? Is it same with boardname? Or something like pin id?

Example; $info = $bot->boards->info($username, $board);

Or Example; $boards = $bot->boards->forUser('my_username'); $boardId = $boards[0]['id']; // get first board id