smsCampaignUpdate()

Update of one of the previously created values of SMS campaign parameters.

Works if SMS campaign is not yet sent.
smsCampaignUpdate(string $cid, string $name, mixed $value) : boolean
Input parameters
  • cid - SMS campaign ID
  • name - name of parameter, such as sender, recipients, title etc. (see Creation of new SMS campaign possible parameter names). Additional parameter content is provided, to update message content.
  • value - value of parameter (see Creation of new SMS campaign possible parameter values)
    If list ID is used, all of the previous lists will be deleted.
    If template ID is used, SMS message content will be overwritten by content of the given template.
Information obtained
  • true, if parameter update has succeeded. Otherwise, an error message is returned.

Examples

mgapi_smsCampaignUpdate.php
smsCampaignUpdate($cid, $name, $value);
 
header("Content-Type: text/plain");
if ($api->errorCode){
    echo "Unable to load smsCampaignUpdate()!\n";
    echo "\tCode=".$api->errorCode."\n";
    echo "\tMsg=".$api->errorMessage."\n";
} else {
    echo "SUCCESS! \n";
}

© 2010-2017 Mailigen. All rights reserved.