You are here

function CampaignMonitor::clientUpdateAccessAndBilling in Campaign Monitor 6.3

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

*

Parameters

int $client_id (ClientID) ID of the client to be updated: * @param string $accessLevel (AccessLevel) AccessLevel of the client * @param string $username (Username) Clients username * @param string $password (Password) Password of the client * @param string $billingType (BillingType) BillingType that the client will be set as * @param string $currency (Currency) Currency that the client will pay in * @param string $deliveryFee (DeliveryFee) Per campaign deliivery fee for the campaign * @param string $costPerRecipient (CostPerRecipient) Per email fee for the client * @param string $designAndSpamTestFee (DesignAndSpamTestFee) Amount the client will * be charged if they have access to send design/spam tests * @return mixed A parsed response from the server, or null if something failed. * @see http://www.campaignmonitor.com/api/method/client-updateaccessandbilling/

File

lib/CMBase.php, line 1050

Class

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

Code

function clientUpdateAccessAndBilling($client_id, $accessLevel, $username, $password, $billingType, $currency, $deliveryFee, $costPerRecipient, $designAndSpamTestFee) {
  return $this
    ->makeCall('Client.UpdateAccessAndBilling', array(
    'params' => array(
      'ClientID' => $client_id,
      'AccessLevel' => $accessLevel,
      'Username' => $username,
      'Password' => $password,
      'BillingType' => $billingType,
      'Currency' => $currency,
      'DeliveryFee' => $deliveryFee,
      'CostPerRecipient' => $costPerRecipient,
      'DesignAndSpamTestFee' => $designAndSpamTestFee,
    ),
  ));
}