我在本地工作以测试 SendInBlue 创建联系人。
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('api-key', env('SENDINBLUE_API_KEY'));
$api_instance = new Swagger\Client\Api\ContactsApi();
$createContact = new Swagger\Client\Model\CreateContact();
$createContact['email'] = 'email@gmail.com';
$createContact['listIds'] = 2;
$result = $api_instance->createContact($createContact);
dd($result);
我有这个错误...
[400] 连接到 API 时出错 ( https://api.sendinblue.com/v3/contacts )