-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathClient.Create.php
More file actions
30 lines (20 loc) · 845 Bytes
/
Client.Create.php
File metadata and controls
30 lines (20 loc) · 845 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';
$companyName = 'Created From API';
$contactName = 'Joe Smith';
$emailAddress = 'joe@domain.com';
$country = 'United States of America';
$timezone = '(GMT-05:00) Eastern Time (US & Canada)';
//-------------------------------------------------------------------------------
$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->clientCreate( $companyName, $contactName, $emailAddress, $country, $timezone );
echo '<br><br>';
print_r($result);
?>