seregazhuk\PinterestBot\Api\Providers\Boards::info PHP Method

info() public method

Get info about user's board.
public info ( string $username, string $board ) : array | boolean
$username string
$board string
return array | boolean
    public function info($username, $board)
    {
        $requestOptions = ['username' => $username, 'slug' => $board, 'field_set_key' => 'detailed'];
        return $this->execGetRequest($requestOptions, UrlBuilder::RESOURCE_GET_BOARD);
    }

Usage Example

コード例 #1
0
 public function testGetBoardInfo()
 {
     $response = $this->createApiResponse(['data' => 'info']);
     $this->mock->expects($this->at(0))->method('exec')->willReturn($response);
     $this->assertEquals('info', $this->provider->info('username', 'board'));
     $this->assertFalse($this->provider->info('username', 'board'));
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\Providers\Boards::info