API Module Email Templates deleteEmailTemplateRequest

From Openprovider API documentation

(Difference between revisions)
Jump to: navigation, search
(Created page with '==Module Email Templates > Delete== {| border="1" cellpadding="4" |- style="background-color:#BBBBBB;" |'''Module''' |Email Templates |- style="background-color:#EEEEEE;" |'''Com…')
(Using PHP class)
Line 26: Line 26:
     ->setAuth(array('username' => 'username', 'password' => 'password'))
     ->setAuth(array('username' => 'username', 'password' => 'password'))
     ->setArgs([
     ->setArgs([
-
         'name' => 'Demo template',
+
         'id' => 1409,
-
        'group' => 'ive',
+
      ]);
-
        'isDefault' => true,
+
-
        'isActive' => true,
+
-
        'locale' => ['nl_NL'],
+
-
        'fields' => [
+
-
            [
+
-
                'name' => 'senderEmail',
+
-
                'value' => 'myemail@mycompany.eu',
+
-
            ],
+
-
            [
+
-
                'name' => 'confirmUrl',
+
-
                'value' => 'http://icann-verification.registrar.eu/?email=%%email%%&authCode=%%authCode%%',
+
-
            ],
+
-
            [
+
-
                'name' => 'resellerName',
+
-
                'value' => 'demo Co',
+
-
            ],
+
-
            [
+
-
                'name' => 'subject',
+
-
                'value' => 'Initial E-mail verification',
+
-
            ],
+
-
            [
+
-
                'name' => 'body',
+
-
                'value' => '%%confirmUrl%% and %%respondDate%%',
+
-
            ],
+
-
            [
+
-
                'name' => 'reminderSubject',
+
-
                'value' => 'Email verification reminder',
+
-
            ],
+
-
            [
+
-
                'name' => 'reminderBody',
+
-
                'value' => '%%confirmUrl%% and %%respondDate%%',
+
-
            ],
+
-
        ],
+
-
    ]);
+
===Raw XML===
===Raw XML===
''Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.''
''Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.''

Revision as of 12:56, 17 September 2015

Contents

Module Email Templates > Delete

Module Email Templates
Command name deleteEmailTemplateRequest
Use Deletes an email template.
Input
  • id
Output
  • -

Examples

Using PHP class

$request = new OP_Request; 
$request->setCommand('createEmailTemplateRequest')
   ->setAuth(array('username' => 'username', 'password' => 'password'))
   ->setArgs([
       'id' => 1409,
     ]);

Raw XML

Please note that newlines and leading spaces are added only for readability. Those whitespaces should be excluded from your XML command before sending it to Openprovider.

Views
Personal tools