How to add customer contacts via the SDK?

Couldnt find how to add customer contacts via the SDK.

Regards


    public function testClientWithContactPost()
    {
        
        $ninja = new InvoiceNinja($this->token);
        $ninja->setUrl($this->url);

        $client = $ninja->clients->create([
            'name' => 'Brand spanking new client',
            'contacts' => [
                [
                    'first_name' => 'first',
                    'last_name' => 'last',
                    'send_email' => true,
                    'email' => 'joe@gmail.com',
                ],
            ]
        ]);
        
        
    } 
1 Like

Thank you so much for your fast response!
Amazing team!