-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathList.Create.php
More file actions
30 lines (20 loc) · 833 Bytes
/
Copy pathList.Create.php
File metadata and controls
30 lines (20 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
ini_set ('display_errors', 1);
error_reporting (E_ALL);
require_once('CMBase.php');
//-----------------------------INPUT PARAMS---------------------------------------
$apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$clientid = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$title = 'API Newsletter Subscribers';
$unsubscribePage = '';
$confirmOptIn = 'false';
$confirmationSuccessPage = '';
//-------------------------------------------------------------------------------
$cm = new CampaignMonitor( $apikey );
//Optional statement to include debugging information in the result
$cm->debug_level = 1;
//This is the actual call to the method
$result = $cm->listCreate( $clientid, $title, $unsubscribePage, $confirmOptIn, $confirmationSuccessPage );
echo '<br><br>';
print_r($result);
?>