<commit_before><?php

require 'vendor/autoload.php'; //USE THIS IF USING COMPOSER
//require_once('src/SeriousEmail/SeriousEmail.php');  //Update this path if you changed the location of SeriousEmail.php

$api_secret = 'YOUR_API_SECRET';
$se = new SeriousEmail($api_secret);

$data = array(
		'public_api_id' => 'YOUR_PUBLIC_API_KEY', 
		'campaign_id' => 89,
		'template_id' => 442,
		'recipient_info' => array( 
		
								array (
								
									'first_name' => 'Sam',
									'last_name' => 'Lamb',
									'email' => '<EMAIL>',
									'email' => '<EMAIL>',
									'custom' => array(
														'Points' => 92,
														'Balance' => 500,
													 )
	
								),
								
								array (
								
									'first_name' => 'Bob',
									'last_name' => 'Smith',
									'email' => '<EMAIL>',
									'email' => '<EMAIL>',
									'custom' => array(
														'Points' => 500,
														'Balance' => 20,
													 )
								),
							
							),	
							
		
	    );

$send = $se->send($data, 1);  //0 = debugging false

if(isset($send)){
	echo $send->feedback;<commit_msg>Upate to example<commit_after><?php

require 'vendor/autoload.php'; //USE THIS IF USING COMPOSER
//require_once('src/SeriousEmail/SeriousEmail.php');  //Update this path if you changed the location of SeriousEmail.php

$api_secret = 'YOUR_API_SECRET';
$se = new SeriousEmail($api_secret);

$data = array(
		'public_api_id' => 'YOUR_PUBLIC_API_KEY', 
		'campaign_id' => 89,
		'template_id' => 442,
		'recipient_info' => array( 
		
								array (
								
									'first_name' => 'Sam',
									'last_name' => 'Lamb',
									'email' => '<EMAIL>',
									'custom' => array(
														'Points' => 92,
														'Balance' => 500,
													 )
	
								),
								
								array (
								
									'first_name' => 'Bob',
									'last_name' => 'Smith',
									'email' => '<EMAIL>',
									'custom' => array(
														'Points' => 500,
														'Balance' => 20,
													 )
								),
							
							),	
							
		
	    );

$send = $se->send($data, 1);  //0 = debugging false

if(isset($send)){
	echo $send->feedback;
{'fraction_non_alphanumeric': 0.1679814385150812, 'fraction_numerical': 0.01577726218097448, 'mean_word_length': 1.7187894073139975, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1834305', 'n_tokens_mistral': 1212, 'n_tokens_neox': 718, 'n_words': 143}