# jetpack/16.3/jetpack_vendor/automattic/jetpack-publicize/src/rest-api/class-proxy-requests.php

Jetpack – WP Security, Backup, Speed, &amp; Growth, version 16.3. 36 lines.

- Page: https://pluginprobe.com/plugins/jetpack/16.3/code/jetpack_vendor/automattic/jetpack-publicize/src/rest-api/class-proxy-requests.php
- Raw: https://pluginprobe.com/plugins/jetpack/16.3/raw/jetpack_vendor/automattic/jetpack-publicize/src/rest-api/class-proxy-requests.php
- Modified: 2026-10-05T16:03:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/jetpack/16.3/code/jetpack_vendor/automattic/jetpack-publicize/src/rest-api/class-proxy-requests.php#L10-L20`.

```php
<?php
/**
 * Helper class to make proxy requests to wpcom.
 *
 * @package automattic/jetpack-publicize
 */

namespace Automattic\Jetpack\Publicize\REST_API;

use Automattic\Jetpack\Connection\Traits\WPCOM_REST_API_Proxy_Request;

if ( ! defined( 'ABSPATH' ) ) {
	exit( 0 );
}

/**
 * Helper class to make proxy requests to wpcom.
 */
class Proxy_Requests {

	use WPCOM_REST_API_Proxy_Request;

	/**
	 * Constructor.
	 *
	 * @param string $rest_base The rest base.
	 * @param string $base_api_path The base API path.
	 * @param string $version The API version.
	 */
	public function __construct( $rest_base, $base_api_path = 'wpcom', $version = 'v2' ) {
		$this->rest_base     = $rest_base;
		$this->base_api_path = $base_api_path;
		$this->version       = $version;
	}
}

```
