PHP Class DirkGroenen\Pinterest\Endpoints\Pins

Inheritance: extends DirkGroenen\Pinterest\Endpoints\Endpoint
Mostrar archivo Open project: dirkgroenen/pinterest-api-php

Public Methods

Method Description
create ( array $data ) : DirkGroenen\Pinterest\Models\Pin Create a pin
delete ( string $pin_id ) : boolean Delete a pin
edit ( string $pin_id, array $data, string $fields = null ) : DirkGroenen\Pinterest\Models\Pin Edit a pin
fromBoard ( string $board_id, array $data = [] ) : DirkGroenen\Pinterest\Models\Collection Get all pins from the given board
get ( string $pin_id, array $data = [] ) : DirkGroenen\Pinterest\Models\Pin Get a pin object

Method Details

create() public method

Create a pin
public create ( array $data ) : DirkGroenen\Pinterest\Models\Pin
$data array
return DirkGroenen\Pinterest\Models\Pin

delete() public method

Delete a pin
public delete ( string $pin_id ) : boolean
$pin_id string
return boolean

edit() public method

Edit a pin
public edit ( string $pin_id, array $data, string $fields = null ) : DirkGroenen\Pinterest\Models\Pin
$pin_id string
$data array
$fields string
return DirkGroenen\Pinterest\Models\Pin

fromBoard() public method

Get all pins from the given board
public fromBoard ( string $board_id, array $data = [] ) : DirkGroenen\Pinterest\Models\Collection
$board_id string
$data array
return DirkGroenen\Pinterest\Models\Collection

get() public method

Get a pin object
public get ( string $pin_id, array $data = [] ) : DirkGroenen\Pinterest\Models\Pin
$pin_id string
$data array
return DirkGroenen\Pinterest\Models\Pin