Closed yusufonur closed 5 years ago
I resolve problem. I define boardId int type but it want to string value. Change type to string and resolved.
So how to get boardID? Is it same with boardname? Or something like pin id?
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
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