API Module Email Templates searchEmailTemplateRequest
From Openprovider API documentation
(Difference between revisions)
(→Raw XML) |
|||
| Line 36: | Line 36: | ||
''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.'' | ||
| - | <?xml version="1.0" encoding="UTF-8"?> | + | <?xml version="1.0" encoding="UTF-8"?> |
| - | <openXML> | + | <openXML> |
| - | + | <credentials> | |
| - | + | <username></username> | |
| - | + | <password></password> | |
| - | + | </credentials> | |
| - | + | <searchEmailTemplateRequest> | |
| - | + | <group>ive</group> | |
| - | + | <limit>10</limit> | |
| - | + | <offset>0</offset> | |
| - | + | </searchEmailTemplateRequest> | |
| - | </openXML> | + | </openXML> |
Revision as of 13:15, 17 September 2015
Contents |
Module Email Templates > Search
| Module | Email Templates |
| Command name | searchEmailTemplateRequest |
| Use | Returns a list of email templates matching search criteria |
| Input |
|
| Output |
|
Examples
Using PHP class
$request = new OP_Request;
$request->setCommand('searchEmailTemplateRequest')
->setAuth(array('username' => 'username', 'password' => 'password'))
->setArgs([
'group' => 'ive',
]);
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.
<?xml version="1.0" encoding="UTF-8"?>
<openXML>
<credentials>
<username></username>
<password></password>
</credentials>
<searchEmailTemplateRequest>
<group>ive</group>
<limit>10</limit>
<offset>0</offset>
</searchEmailTemplateRequest>
</openXML>