Amžiaus pokyčiai

$groupsApi = (new MailerLiteApi\MailerLite("e2c0f184432a6e9306cd5115e83860d5"))->groups(); $subscriber = [ 'email' => 'john@example.com', 'fields' => [ 'name' => 'John', 'last_name' => 'Doe', 'company' => 'John Doe Co.' ] ]; $response = $groupsApi->addSubscriber(GROUP_ID, $subscriber); // Change GROUP_ID with ID of group you want to add subscriber to