DirkGroenen\Pinterest\Transport\Request::update PHP Method

update() public method

Make an update request to the given endpoint
public update ( string $endpoint, array $parameters = [], array $queryparameters = [] ) : DirkGroenen\Pinterest\Transport\Response
$endpoint string
$parameters array
$queryparameters array
return DirkGroenen\Pinterest\Transport\Response
    public function update($endpoint, array $parameters = array(), array $queryparameters = array())
    {
        if (!empty($queryparameters)) {
            $path = sprintf("%s/?%s", $endpoint, http_build_query($queryparameters));
        } else {
            $path = $endpoint;
        }
        return $this->execute("PATCH", sprintf("%s%s", $this->host, $path), $parameters);
    }