public function edit($pin_id, array $data, $fields = null)
    {
        $query = (!$fields) ? array() : array("fields" => $fields);

        $response = $this->request->update(sprintf("pins/%s/", $pin_id), $data, $query);
        return new Pin($this->master, $response);
    }
public function edit($pin_id, array $data, $fields = null)
    {
        $query = (!$fields) ? array() : array("fields" => $fields);

        $response = $this->request->update(sprintf("pins/%s/", $pin_id), $data, $query);
        return new Pin($this->master, $response);
    }
public function edit ( $ pin_id , array $ data , $ fields = null ) { $ query = ( ! $ fields ) ? array ( ) : array ( "fields" => $ fields ) ; $ response = $ this -> request -> update ( sprintf ( "pins/%s/" , $ pin_id ) , $ data , $ query ) ; return new Pin ( $ this -> master , $ response ) ; }
Edit a pin

@access public
@param  string   $pin_id
@param  array    $data
@param  string   $fields
@throws \DirkGroenen\Pinterest\Exceptions\PinterestException
@return Pin
Edit a pin