Request_Api::patch( string $url, array $args, int $expect_code = self::PATCH_RESPONSE_CODE )

Makes a PATCH request to an API.


Parameters

$url

(string) (Required) The URL to make the request to.

$args

(array) (Required) An array of arguments for the request.

$expect_code

(int) (Optional) The expected response code, if not met, then the request will be considered a failure. Set to null to avoid checking the status code.

Default value: self::PATCH_RESPONSE_CODE


Top ↑

Return

(TribeEventsVirtualIntegrationsApi_Response) An API response to act upon the response result.


Top ↑

Source

File: src/Tribe/Integrations/Request_Api.php

	public function patch( $url, array $args, $expect_code = self::PATCH_RESPONSE_CODE ) {
		$args['method'] = 'PATCH';

		return $this->request( $url, $args, $expect_code );
	}

Top ↑

Changelog

Changelog
Version Description
1.9.0 Introduced.