PHP Class seregazhuk\PinterestBot\Api\Providers\Pinners

Inheritance: extends Provider, use trait seregazhuk\PinterestBot\Api\Traits\Searchable, use trait seregazhuk\PinterestBot\Api\Traits\Followable
Afficher le fichier Open project: seregazhuk/php-pinterest-bot Class Usage Examples

Protected Properties

Свойство Type Description
$entityIdName
$followUrl
$followersFor
$followersUrl
$loginRequiredFor array
$searchScope
$unFollowUrl

Méthodes publiques

Méthode Description
block ( string $username ) : boolean | Response
blockById ( integer $userId ) : boolean | Response
following ( string $username, string $type = UrlBuilder::FOLLOWING_PEOPLE, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator Get following info for pinner.
followingBoards ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
followingInterests ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
followingPeople ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
info ( string $username ) : array Get user info.
likes ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator Get pins that user likes.
pins ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator Get pinner pins.

Méthodes protégées

Méthode Description
paginate ( string $username, string $url, integer $limit ) : Traversable

Method Details

block() public méthode

public block ( string $username ) : boolean | Response
$username string
Résultat boolean | seregazhuk\PinterestBot\Api\Response

blockById() public méthode

public blockById ( integer $userId ) : boolean | Response
$userId integer
Résultat boolean | seregazhuk\PinterestBot\Api\Response

following() public méthode

Get following info for pinner.
public following ( string $username, string $type = UrlBuilder::FOLLOWING_PEOPLE, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
$username string
$type string
$limit integer
Résultat Iterator

followingBoards() public méthode

public followingBoards ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
$username string
$limit integer
Résultat Iterator

followingInterests() public méthode

public followingInterests ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
$username string
$limit integer
Résultat Iterator

followingPeople() public méthode

public followingPeople ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
$username string
$limit integer
Résultat Iterator

info() public méthode

If username param is not specified, will return info for logged user.
public info ( string $username ) : array
$username string
Résultat array

likes() public méthode

Get pins that user likes.
public likes ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
$username string
$limit integer
Résultat Iterator

paginate() protected méthode

protected paginate ( string $username, string $url, integer $limit ) : Traversable
$username string
$url string
$limit integer
Résultat Traversable

pins() public méthode

Get pinner pins.
public pins ( string $username, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterator
$username string
$limit integer
Résultat Iterator

Property Details

$entityIdName protected_oe property

protected $entityIdName

$followUrl protected_oe property

protected $followUrl

$followersFor protected_oe property

protected $followersFor

$followersUrl protected_oe property

protected $followersUrl

$loginRequiredFor protected_oe property

protected array $loginRequiredFor
Résultat array

$searchScope protected_oe property

protected $searchScope

$unFollowUrl protected_oe property

protected $unFollowUrl