src/Services/ContactsListService.php
private function _exec($listId, Contact $contact)
    {
        return $this->mailjet->post(Resources::$ContactslistManagecontact,
            ['id' => $listId, 'body' => $contact->format()]
        );
    }
private function _exec($listId, Contact $contact)
    {
        return $this->mailjet->post(Resources::$ContactslistManagecontact,
            ['id' => $listId, 'body' => $contact->format()]
        );
    }
private function _exec ( $ listId , Contact $ contact ) { return $ this -> mailjet -> post ( Resources :: $ ContactslistManagecontact , [ 'id' => $ listId , 'body' => $ contact -> format ( ) ] ) ; }
An action for adding a contact to a contact list. Only POST is supported.
The API will internally create the new contact if it does not exist,
add or update the name and properties.
The properties have to be defined before they can be used.
The API then adds the contact to the contact list with active=true and
unsub=specified value if it is not already in the list,
or updates the entry with these values. On success,
the API returns a packet with the same format but with all properties available
for that contact.
@param string $listId
@param Contact $contact
An action for adding a contact to a contact list . Only POST is supported . The API will internally create the new contact if it does not exist add or update the name and properties . The properties have to be defined before they can be used . The API then adds the contact to the contact list with active = true and unsub = specified value if it is not already in the list or updates the entry with these values . On success the API returns a packet with the same format but with all properties available for that contact .