Add a contact to a list

Using the SDK

from cakemail.models import Contact

contact = api.contact.create(
    list_id=<list ID>,
    contact=Contact(email='<contact email address>')
)
<?php

$contact = $api->contact->create([
    'list_id' => <list ID>,
    'contact' => new \Cakemail\Lib\Model\Contact([
        'email' => '<contact email address>'
    ])
]);
Language
Authentication
OAuth2
Click Try It! to start a request and see the response here!