Closed mgip closed 3 years ago
It looks you're overwriting the contacts array rather than updating the existing contact.
Note: please use Slack for the forum for support.
Hi guys, the problem was that the other side (Laravel) expect a multidimentional array. My solution was:
$client->contacts[] = array(
'id' => $client->contacts[0]->id,
'first_name' => $dataEnviar['contacto_first_name'],
'last_name' => $dataEnviar['contacto_last_name'],
'email' => $dataEnviar['contacto_email'],
'phone' => $dataEnviar['contacto_phone']
);
I hope it helps someone.
We'll see you on Slack. Thanks @hillelcoren for the information.
I try to complement the sdk with edit the contact of specific clients, but nothing, i share the code:
` $client = Client::find($clientExiste[0]->id);
What am i do wrong?
Thanks