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

forUser() public method

Get boards for user by username.
public forUser ( string $username ) : array | boolean
$username string
return array | boolean
    public function forUser($username)
    {
        return $this->execGetRequest(['username' => $username], UrlBuilder::RESOURCE_GET_BOARDS);
    }

Usage Example

 /** @test */
 public function it_should_return_boards_for_specific_user()
 {
     $boards = 'boards';
     $userName = '******';
     $this->apiShouldReturnData($boards)->assertEquals($boards, $this->provider->forUser($userName));
     $this->apiShouldReturnEmpty()->assertFalse($this->provider->forUser($userName));
 }
All Usage Examples Of seregazhuk\PinterestBot\Api\Providers\Boards::forUser