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

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

보호된 프로퍼티들

프로퍼티 타입 설명
$deleteUrl
$entityIdName
$loginRequiredFor array
$searchScope

공개 메소드들

메소드 설명
activity ( string $pinId, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterato\Iterator | array Get the latest pin activity with pagination.
copy ( array | string $pinIds, integer $boardId ) : boolean | Response Copy pins to board
create ( string $imageUrl, integer $boardId, string $description = '', string $link = '' ) : array Create a pin. Returns created pin info.
deleteFromBoard ( string | array $pinIds, integer $boardId ) : boolean Delete pins from board.
edit ( integer $pindId, string $description = '', string $link = '', integer | null $boardId = null ) : boolean Edit pin by ID. You can move pin to a new board by setting this board id.
feed ( integer $limit = Pagination::DEFAULT_LIMIT ) : Pagination Get pins from user's feed
fromSource ( string $source, integer $limit = Pagination::DEFAULT_LIMIT ) : Pagination Get pins from a specific url. For example: https://pinterest.com/source/flickr.com/ will return recent Pins from flickr.com
info ( string $pinId ) : array | boolean Get information of a pin by PinID.
like ( string $pinId ) : boolean Likes pin with current ID.
move ( string | array $pinIds, integer $boardId ) : boolean | Response
moveToBoard ( integer $pindId, integer $boardId ) : boolean Moves pin to a new board
related ( string $pinId, integer $limit = Pagination::DEFAULT_LIMIT ) : Pagination
repin ( integer $repinId, integer $boardId, string $description = '' ) : array Make a repin.
saveOriginalImage ( integer $pinId, string $path ) : false | string Saves the pin original image to the specified path. On success returns full path to saved image. Otherwise returns false.
send ( string $pinId, string $text, array | string $userIds, array | string $emails ) : boolean Send pin with message or by email.
sendWithEmail ( integer $pinId, string $text, array | string $emails ) : boolean Send pin with emails.
sendWithMessage ( integer $pinId, string $text, array | string $userIds ) : boolean Send pin with messages.
unLike ( string $pinId ) : boolean Removes your like from pin with current ID.
visualSimilar ( string $pinId, array $crop = [] ) : array | boolean

보호된 메소드들

메소드 설명
bulkEdit ( string | array $pinIds, integer $boardId, string $editUrl ) : boolean
getAggregatedPinId ( string $pinId ) : integer | null
getFeedRequestData ( mixed $params = [] ) : array
likePinMethodCall ( string $pinId, string $resourceUrl ) : boolean Calls Pinterest API to like or unlike Pin by ID.

메소드 상세

activity() 공개 메소드

Get the latest pin activity with pagination.
public activity ( string $pinId, integer $limit = Pagination::DEFAULT_LIMIT ) : Iterato\Iterator | array
$pinId string
$limit integer
리턴 Iterato\Iterator | array

bulkEdit() 보호된 메소드

protected bulkEdit ( string | array $pinIds, integer $boardId, string $editUrl ) : boolean
$pinIds string | array
$boardId integer
$editUrl string
리턴 boolean

copy() 공개 메소드

Copy pins to board
public copy ( array | string $pinIds, integer $boardId ) : boolean | Response
$pinIds array | string
$boardId integer
리턴 boolean | seregazhuk\PinterestBot\Api\Response

create() 공개 메소드

Create a pin. Returns created pin info.
public create ( string $imageUrl, integer $boardId, string $description = '', string $link = '' ) : array
$imageUrl string
$boardId integer
$description string
$link string
리턴 array

deleteFromBoard() 공개 메소드

Delete pins from board.
public deleteFromBoard ( string | array $pinIds, integer $boardId ) : boolean
$pinIds string | array
$boardId integer
리턴 boolean

edit() 공개 메소드

Edit pin by ID. You can move pin to a new board by setting this board id.
public edit ( integer $pindId, string $description = '', string $link = '', integer | null $boardId = null ) : boolean
$pindId integer
$description string
$link string
$boardId integer | null
리턴 boolean

feed() 공개 메소드

Get pins from user's feed
public feed ( integer $limit = Pagination::DEFAULT_LIMIT ) : Pagination
$limit integer
리턴 seregazhuk\PinterestBot\Helpers\Pagination

fromSource() 공개 메소드

Get pins from a specific url. For example: https://pinterest.com/source/flickr.com/ will return recent Pins from flickr.com
public fromSource ( string $source, integer $limit = Pagination::DEFAULT_LIMIT ) : Pagination
$source string
$limit integer
리턴 seregazhuk\PinterestBot\Helpers\Pagination

getAggregatedPinId() 보호된 메소드

protected getAggregatedPinId ( string $pinId ) : integer | null
$pinId string
리턴 integer | null

getFeedRequestData() 보호된 메소드

protected getFeedRequestData ( mixed $params = [] ) : array
$params mixed
리턴 array

info() 공개 메소드

Get information of a pin by PinID.
public info ( string $pinId ) : array | boolean
$pinId string
리턴 array | boolean

like() 공개 메소드

Likes pin with current ID.
public like ( string $pinId ) : boolean
$pinId string
리턴 boolean

likePinMethodCall() 보호된 메소드

Calls Pinterest API to like or unlike Pin by ID.
protected likePinMethodCall ( string $pinId, string $resourceUrl ) : boolean
$pinId string
$resourceUrl string
리턴 boolean

move() 공개 메소드

public move ( string | array $pinIds, integer $boardId ) : boolean | Response
$pinIds string | array
$boardId integer
리턴 boolean | seregazhuk\PinterestBot\Api\Response

moveToBoard() 공개 메소드

Moves pin to a new board
public moveToBoard ( integer $pindId, integer $boardId ) : boolean
$pindId integer
$boardId integer
리턴 boolean

repin() 공개 메소드

Make a repin.
public repin ( integer $repinId, integer $boardId, string $description = '' ) : array
$repinId integer
$boardId integer
$description string
리턴 array

saveOriginalImage() 공개 메소드

Saves the pin original image to the specified path. On success returns full path to saved image. Otherwise returns false.
public saveOriginalImage ( integer $pinId, string $path ) : false | string
$pinId integer
$path string
리턴 false | string

send() 공개 메소드

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

sendWithEmail() 공개 메소드

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

sendWithMessage() 공개 메소드

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

unLike() 공개 메소드

Removes your like from pin with current ID.
public unLike ( string $pinId ) : boolean
$pinId string
리턴 boolean

visualSimilar() 공개 메소드

public visualSimilar ( string $pinId, array $crop = [] ) : array | boolean
$pinId string
$crop array
리턴 array | boolean

프로퍼티 상세

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

protected $deleteUrl

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

protected $entityIdName

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

protected array $loginRequiredFor
리턴 array

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

protected $searchScope