smsCampaignTemplates()

Submit request and as a result obtain a list (array) with saved SMS templates in user’s account.

smsCampaignTemplates() : string
Information obtained

Array of SMS templates. Each SMS template is represented as an array that includes:

  • id - template ID
  •  text - template text

Examples

mgapi_smsCampaignTemplates.php
smsCampaignTemplates();
 
header("Content-Type: text/plain");
if ($api->errorCode) {
    echo "Unable to load smsCampaignTemplates()!";
    echo "\tCode=" . $api->errorCode . "\n";
    echo "\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Your templates:\n";
    foreach ($retval as $tmpl) {
        echo "\t" . $tmpl['id'] . " - " . $tmpl['name'] . " - " . $tmpl['layout'] . "\n";
    }
}

© 2010-2017 Mailigen. All rights reserved.