Importing attributes failed on \Brevo\Client\Model\CreateContact() · Issue #37 · getbrevo/brevo-php · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I put attributes on CreateContact instance they're skipped and not imported.
Following my partial code:
$attribs = new \stdClass();
$attribs->FNAME = "Roger";
$attribs->LNAME = "White";
$createContact = new \Brevo\Client\Model\CreateContact();
$createContact->setEmail('example@example.com');
$createContact->setListIds([2]);
$createContact->setAttributes($attribs);
$createContact->setUpdateEnabled (true);
try {
$result = $apiInstance->createContact($createContact);
print_r($result);
} catch (Exception $e) {
print_r($e);
echo 'Exception when calling ContactsApi->createContact: ', $e->getMessage(), PHP_EOL;
}
the contact creation was successfully but without attributes. I only see the email in Brevo dashboard.
The text was updated successfully, but these errors were encountered: