HEX
Server: LiteSpeed
System: Linux sg-cp4.cloudnetwork.vn 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64
User: thu28850 (1134)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/thu28850/www/wp-content/plugins/facebook-for-woocommerce/includes/API/Catalog/Request.php
<?php
/**
 * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
 *
 * This source code is licensed under the license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @package FacebookCommerce
 */

namespace WooCommerce\Facebook\API\Catalog;

defined( 'ABSPATH' ) || exit;

use WooCommerce\Facebook\API\Request as ApiRequest;

/**
 * Request object for the Catalog API.
 *
 * @link https://developers.facebook.com/docs/marketing-api/reference/product-catalog/v13.0
 */
class Request extends ApiRequest {
	/**
	 * Gets the rate limit ID.
	 *
	 * @return string
	 */
	public static function get_rate_limit_id(): string {
		return 'ads_management';
	}


	/**
	 * API request constructor.
	 *
	 * @param string $catalog_id catalog ID
	 */
	public function __construct( string $catalog_id ) {
		parent::__construct( "/{$catalog_id}?fields=name", 'GET' );
	}
}