jetpack
/
jetpack_vendor
/
automattic
/
jetpack-publicize
/
src
/
rest-api
/
class-proxy-requests.php
class-base-controller.php
9 months ago
class-connections-controller.php
1 month ago
class-connections-post-field.php
1 month ago
class-keyring-result-controller.php
2 months ago
class-message-templates-placeholders-controller.php
3 months ago
class-proxy-requests.php
9 months ago
class-render-messages-controller.php
1 month ago
class-scheduled-actions-controller.php
9 months ago
class-services-controller.php
9 months ago
class-share-post-controller.php
9 months ago
class-share-status-controller.php
9 months ago
class-social-image-generator-controller.php
9 months ago
class-proxy-requests.php
32 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Helper class to make proxy requests to wpcom. |
| 4 | * |
| 5 | * @package automattic/jetpack-publicize |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\Jetpack\Publicize\REST_API; |
| 9 | |
| 10 | use Automattic\Jetpack\Connection\Traits\WPCOM_REST_API_Proxy_Request; |
| 11 | |
| 12 | /** |
| 13 | * Helper class to make proxy requests to wpcom. |
| 14 | */ |
| 15 | class Proxy_Requests { |
| 16 | |
| 17 | use WPCOM_REST_API_Proxy_Request; |
| 18 | |
| 19 | /** |
| 20 | * Constructor. |
| 21 | * |
| 22 | * @param string $rest_base The rest base. |
| 23 | * @param string $base_api_path The base API path. |
| 24 | * @param string $version The API version. |
| 25 | */ |
| 26 | public function __construct( $rest_base, $base_api_path = 'wpcom', $version = 'v2' ) { |
| 27 | $this->rest_base = $rest_base; |
| 28 | $this->base_api_path = $base_api_path; |
| 29 | $this->version = $version; |
| 30 | } |
| 31 | } |
| 32 |