You are here

function CampaignMonitor::clientUpdateBasics in Campaign Monitor 6.2

Same name and namespace in other branches
  1. 5.2 lib/CMBase.php \CampaignMonitor::clientUpdateBasics()
  2. 6.3 lib/CMBase.php \CampaignMonitor::clientUpdateBasics()

*

Parameters

int $client_id (ClientID) ID of the client to be updated: * @param string $companyName (CompanyName) Company name of the client to be updated * @param string $contactName (ContactName) Contact name of the client to be updated * @param string $emailAddress (EmailAddress) Email Address of the client to be updated * @param string $country (Country) Country of the client to be updated * @param string $timezone (Timezone) Timezone of the client to be updated * @return mixed A parsed response from the server, or null if something failed. * @see http://www.campaignmonitor.com/api/method/client-create/

File

lib/CMBase.php, line 1012

Class

CampaignMonitor
The new CampaignMonitor class that now extends from CMBase. This should be backwards compatible with the original (PHP5) version.

Code

function clientUpdateBasics($client_id, $companyName, $contactName, $emailAddress, $country, $timezone) {
  return $this
    ->makeCall('Client.UpdateBasics', array(
    'params' => array(
      'ClientID' => $client_id,
      'CompanyName' => $companyName,
      'ContactName' => $contactName,
      'EmailAddress' => $emailAddress,
      'Country' => $country,
      'Timezone' => $timezone,
    ),
  ));
}