PHP code example of rewake / sendlane
1. Go to this page and download the library: Download rewake/sendlane 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/ */
rewake / sendlane example snippets
try {
// Make static API call
SendlaneClient::api(
'subdomain',
'list-subscriber-add',
[
'key' => 'your-api-key',
'hash' => 'your-api-hash',
'email' => '[email protected]',
'list_id' => 1
]
);
} catch (\Exception $e) {
// Echo error message
echo $e->getMessage();
}