PHP code example of kiwicom / email-on-acid-sdk

1. Go to this page and download the library: Download kiwicom/email-on-acid-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kiwicom / email-on-acid-sdk example snippets


$apiFactory = new \EmailOnAcid\ApiFactory('yourapikey', 'yourpassword', $timeout);

$emailTestsApi = $apiFactory->createEmailTesting()

try {
    $newEmailTest = $emailTestsApi->createEmailTest(
		new \EmailOnAcid\Request\EmailTestRequest(
			'Email subject to test',
			'<html>Html of your email to test</html>'
		)
	);
} catch (\EmailOnAcid\Ecxception\EmailOnAcidException $e) {
    // handle exception
}

$testInfo = $emailTestApi->getTestInfo(
	$newEmailTest->getId()
);