我正在使用 Mailchimp 的营销 PHP API ( https://github.com/mailchimp/mailchimp-marketing-php ) 来检索模板列表。它有以下代码。
<?php
require_once '/path/to/MailchimpMarketing/vendor/autoload.php';
$client = new MailchimpMarketing\ApiClient();
$client->setConfig([
'apiKey' => 'YOUR_API_KEY',
'server' => 'YOUR_SERVER_PREFIX',
]);
$response = $client->templates->list();
print_r($response);
并且它返回整套其他默认模板(128 个模板!),api 请求参数具有type
可用于过滤这些模板的字段。但是我无论如何都找不到传递请求参数。任何想法?