PHP 클래스 seregazhuk\PinterestBot\Api\Providers\Boards

상속: extends Provider, use trait seregazhuk\PinterestBot\Helpers\Providers\Traits\SearchTrait, use trait seregazhuk\PinterestBot\Helpers\Providers\Traits\FollowTrait, use trait seregazhuk\PinterestBot\Helpers\Providers\Traits\FollowersTrait
파일 보기 프로젝트 열기: seregazhuk/php-pinterest-bot 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$deleteUrl
$entityIdName
$followUrl
$followersFor
$followersUrl
$loginRequiredFor array
$searchScope
$unFollowUrl

공개 메소드들

메소드 설명
create ( string $name, string $description, string $privacy = self::BOARD_PRIVACY_PUBLIC ) : boolean Create a new board.
createPrivate ( string $name, string $description ) : boolean Create a new board.
forUser ( string $username ) : array | boolean Get boards for user by username.
getPinsFromBoard ( integer $boardId, array $bookmarks = [] ) : seregazhuk\PinterestBot\Api\Contracts\PaginatedResponse
info ( string $username, string $board ) : array | boolean Get info about user's board.
pins ( integer $boardId, integer $limit = Pagination::DEFAULT_LIMIT ) : Pagination Get pins from board by boardId.
send ( integer $boardId, string $text, array | string $userIds, array | string $emails ) : boolean Send board with message or by email.
sendWithEmail ( integer $boardId, string $text, array | string $emails ) : boolean Send board with emails.
sendWithMessage ( integer $boardId, string $text, array | string $userIds ) : boolean Send board with messages.
titleSuggestionsFor ( string $pinId ) : array | boolean Returns title suggestions for pin.
update ( $boardId, $attributes ) : mixed Update board info. Gets boardId and an associative array as params. Available keys of the array are: 'category', 'description', 'privacy'.

메소드 상세

create() 공개 메소드

Create a new board.
public create ( string $name, string $description, string $privacy = self::BOARD_PRIVACY_PUBLIC ) : boolean
$name string
$description string
$privacy string Can be 'public' or 'secret'. 'public' by default.
리턴 boolean

createPrivate() 공개 메소드

Create a new board.
public createPrivate ( string $name, string $description ) : boolean
$name string
$description string
리턴 boolean

forUser() 공개 메소드

Get boards for user by username.
public forUser ( string $username ) : array | boolean
$username string
리턴 array | boolean

getPinsFromBoard() 공개 메소드

public getPinsFromBoard ( integer $boardId, array $bookmarks = [] ) : seregazhuk\PinterestBot\Api\Contracts\PaginatedResponse
$boardId integer
$bookmarks array
리턴 seregazhuk\PinterestBot\Api\Contracts\PaginatedResponse

info() 공개 메소드

Get info about user's board.
public info ( string $username, string $board ) : array | boolean
$username string
$board string
리턴 array | boolean

pins() 공개 메소드

Get pins from board by boardId.
public pins ( integer $boardId, integer $limit = Pagination::DEFAULT_LIMIT ) : Pagination
$boardId integer
$limit integer
리턴 seregazhuk\PinterestBot\Helpers\Pagination

send() 공개 메소드

Send board with message or by email.
public send ( integer $boardId, string $text, array | string $userIds, array | string $emails ) : boolean
$boardId integer
$text string
$userIds array | string
$emails array | string
리턴 boolean

sendWithEmail() 공개 메소드

Send board with emails.
public sendWithEmail ( integer $boardId, string $text, array | string $emails ) : boolean
$boardId integer
$text string
$emails array | string
리턴 boolean

sendWithMessage() 공개 메소드

Send board with messages.
public sendWithMessage ( integer $boardId, string $text, array | string $userIds ) : boolean
$boardId integer
$text string
$userIds array | string
리턴 boolean

titleSuggestionsFor() 공개 메소드

Returns title suggestions for pin.
public titleSuggestionsFor ( string $pinId ) : array | boolean
$pinId string
리턴 array | boolean

update() 공개 메소드

- 'privacy' can be 'public' or 'secret'. 'public' by default. - 'category' is 'other' by default.
public update ( $boardId, $attributes ) : mixed
$boardId
$attributes
리턴 mixed

프로퍼티 상세

$deleteUrl 보호되어 있는 프로퍼티

protected $deleteUrl

$entityIdName 보호되어 있는 프로퍼티

protected $entityIdName

$followUrl 보호되어 있는 프로퍼티

protected $followUrl

$followersFor 보호되어 있는 프로퍼티

protected $followersFor

$followersUrl 보호되어 있는 프로퍼티

protected $followersUrl

$loginRequiredFor 보호되어 있는 프로퍼티

protected array $loginRequiredFor
리턴 array

$searchScope 보호되어 있는 프로퍼티

protected $searchScope

$unFollowUrl 보호되어 있는 프로퍼티

protected $unFollowUrl