mailingtemplate
35 Methoden verfügbar
Keine Methoden gefunden für ""
Creates a mailing template object
Rückgabewert
| Feld | Typ |
|---|---|
| url | string |
| type_id | int |
| category_id | int |
| customer_id | int |
| last_modified | int |
| id | int |
| name | string |
PHP Implementierung anzeigen
<?php
/**
* Creates a mailing template object
* Service: mailingtemplate
* @return EvalancheResourceInformation
* Felder:
* - url (string)
* - type_id (int)
* - category_id (int)
* - customer_id (int)
* - last_modified (int)
* - id (int)
* - name (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'name' => '', // string (required)
'category_id' => 0, // int
];
$result = $client->create($params);
// Rückgabewert: EvalancheResourceInformation
// $result->url (string)
// $result->type_id (int)
// $result->category_id (int)
// $result->customer_id (int)
// $result->last_modified (int)
// $result->id (int)
// $result->name (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:create xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<name></name> <!-- string, required -->
<category_id>0</category_id> <!-- int, optional -->
</tns:create>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#create"
Authorization: Basic {base64(username:password)}
Applies a mailing template onto existing mailing objects
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Applies a mailing template onto existing mailing objects
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'mailing_ids' => '', // tns:ArrayOfInt (required)
];
$result = $client->applyTemplate($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:applyTemplate xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<mailing_ids></mailing_ids> <!-- tns:ArrayOfInt, required -->
</tns:applyTemplate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#applyTemplate"
Authorization: Basic {base64(username:password)}
Reads the configuration of the specified mailing template
Rückgabewert
| Feld | Typ |
|---|---|
| container_type | string |
| external_trackingcode | string |
| campaign_id | string |
| externalxml_url | string |
| salutation_female | string |
| salutation_male | string |
| salutation_company | string |
| salutation_family | string |
| salutation_other | string |
| salutation_divers | string |
| sender_email | string |
| sender_name | string |
| reply_name | string |
| reply_email | string |
| grant_url | string |
| revoke_url | string |
| revoke_tracking_redirect_url | string |
| grant_tracking_redirect_url | string |
| revoke_confirmation_url | string |
| revoke_confirmation_active | boolean |
| inputfield_0 | string |
| inputfield_1 | string |
| inputfield_2 | string |
| inputfield_3 | string |
| inputfield_4 | string |
| inputfield_5 | string |
| inputfield_6 | string |
| inputfield_7 | string |
| inputfield_8 | string |
| inputfield_9 | string |
| textarea_0 | string |
| textarea_1 | string |
| textarea_2 | string |
| textarea_3 | string |
| textarea_4 | string |
| textarea_5 | string |
| textarea_6 | string |
| textarea_7 | string |
| textarea_8 | string |
| textarea_9 | string |
| htmlarea_0 | string |
| htmlarea_1 | string |
| htmlarea_2 | string |
| htmlarea_3 | string |
| htmlarea_4 | string |
| htmlarea_5 | string |
| htmlarea_6 | string |
| htmlarea_7 | string |
| htmlarea_8 | string |
| htmlarea_9 | string |
| macro_library | string |
PHP Implementierung anzeigen
<?php
/**
* Reads the configuration of the specified mailing template
* Service: mailingtemplate
* @return EvalancheMailingTemplateConfiguration
* Felder:
* - container_type (string)
* - external_trackingcode (string)
* - campaign_id (string)
* - externalxml_url (string)
* - salutation_female (string)
* - salutation_male (string)
* - salutation_company (string)
* - salutation_family (string)
* - salutation_other (string)
* - salutation_divers (string)
* - sender_email (string)
* - sender_name (string)
* - reply_name (string)
* - reply_email (string)
* - grant_url (string)
* - revoke_url (string)
* - revoke_tracking_redirect_url (string)
* - grant_tracking_redirect_url (string)
* - revoke_confirmation_url (string)
* - revoke_confirmation_active (boolean)
* - inputfield_0 (string)
* - inputfield_1 (string)
* - inputfield_2 (string)
* - inputfield_3 (string)
* - inputfield_4 (string)
* - inputfield_5 (string)
* - inputfield_6 (string)
* - inputfield_7 (string)
* - inputfield_8 (string)
* - inputfield_9 (string)
* - textarea_0 (string)
* - textarea_1 (string)
* - textarea_2 (string)
* - textarea_3 (string)
* - textarea_4 (string)
* - textarea_5 (string)
* - textarea_6 (string)
* - textarea_7 (string)
* - textarea_8 (string)
* - textarea_9 (string)
* - htmlarea_0 (string)
* - htmlarea_1 (string)
* - htmlarea_2 (string)
* - htmlarea_3 (string)
* - htmlarea_4 (string)
* - htmlarea_5 (string)
* - htmlarea_6 (string)
* - htmlarea_7 (string)
* - htmlarea_8 (string)
* - htmlarea_9 (string)
* - macro_library (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
];
$result = $client->getConfiguration($params);
// Rückgabewert: EvalancheMailingTemplateConfiguration
// $result->container_type (string)
// $result->external_trackingcode (string)
// $result->campaign_id (string)
// $result->externalxml_url (string)
// $result->salutation_female (string)
// $result->salutation_male (string)
// $result->salutation_company (string)
// $result->salutation_family (string)
// $result->salutation_other (string)
// $result->salutation_divers (string)
// $result->sender_email (string)
// $result->sender_name (string)
// $result->reply_name (string)
// $result->reply_email (string)
// $result->grant_url (string)
// $result->revoke_url (string)
// $result->revoke_tracking_redirect_url (string)
// $result->grant_tracking_redirect_url (string)
// $result->revoke_confirmation_url (string)
// $result->revoke_confirmation_active (boolean)
// $result->inputfield_0 (string)
// $result->inputfield_1 (string)
// $result->inputfield_2 (string)
// $result->inputfield_3 (string)
// $result->inputfield_4 (string)
// $result->inputfield_5 (string)
// $result->inputfield_6 (string)
// $result->inputfield_7 (string)
// $result->inputfield_8 (string)
// $result->inputfield_9 (string)
// $result->textarea_0 (string)
// $result->textarea_1 (string)
// $result->textarea_2 (string)
// $result->textarea_3 (string)
// $result->textarea_4 (string)
// $result->textarea_5 (string)
// $result->textarea_6 (string)
// $result->textarea_7 (string)
// $result->textarea_8 (string)
// $result->textarea_9 (string)
// $result->htmlarea_0 (string)
// $result->htmlarea_1 (string)
// $result->htmlarea_2 (string)
// $result->htmlarea_3 (string)
// $result->htmlarea_4 (string)
// $result->htmlarea_5 (string)
// $result->htmlarea_6 (string)
// $result->htmlarea_7 (string)
// $result->htmlarea_8 (string)
// $result->htmlarea_9 (string)
// $result->macro_library (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getConfiguration xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
</tns:getConfiguration>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getConfiguration"
Authorization: Basic {base64(username:password)}
Sets the configuration for the specified mailing template
Rückgabewert
| Feld | Typ |
|---|---|
| container_type | string |
| external_trackingcode | string |
| campaign_id | string |
| externalxml_url | string |
| salutation_female | string |
| salutation_male | string |
| salutation_company | string |
| salutation_family | string |
| salutation_other | string |
| salutation_divers | string |
| sender_email | string |
| sender_name | string |
| reply_name | string |
| reply_email | string |
| grant_url | string |
| revoke_url | string |
| revoke_tracking_redirect_url | string |
| grant_tracking_redirect_url | string |
| revoke_confirmation_url | string |
| revoke_confirmation_active | boolean |
| inputfield_0 | string |
| inputfield_1 | string |
| inputfield_2 | string |
| inputfield_3 | string |
| inputfield_4 | string |
| inputfield_5 | string |
| inputfield_6 | string |
| inputfield_7 | string |
| inputfield_8 | string |
| inputfield_9 | string |
| textarea_0 | string |
| textarea_1 | string |
| textarea_2 | string |
| textarea_3 | string |
| textarea_4 | string |
| textarea_5 | string |
| textarea_6 | string |
| textarea_7 | string |
| textarea_8 | string |
| textarea_9 | string |
| htmlarea_0 | string |
| htmlarea_1 | string |
| htmlarea_2 | string |
| htmlarea_3 | string |
| htmlarea_4 | string |
| htmlarea_5 | string |
| htmlarea_6 | string |
| htmlarea_7 | string |
| htmlarea_8 | string |
| htmlarea_9 | string |
| macro_library | string |
PHP Implementierung anzeigen
<?php
/**
* Sets the configuration for the specified mailing template
* Service: mailingtemplate
* @return EvalancheMailingTemplateConfiguration
* Felder:
* - container_type (string)
* - external_trackingcode (string)
* - campaign_id (string)
* - externalxml_url (string)
* - salutation_female (string)
* - salutation_male (string)
* - salutation_company (string)
* - salutation_family (string)
* - salutation_other (string)
* - salutation_divers (string)
* - sender_email (string)
* - sender_name (string)
* - reply_name (string)
* - reply_email (string)
* - grant_url (string)
* - revoke_url (string)
* - revoke_tracking_redirect_url (string)
* - grant_tracking_redirect_url (string)
* - revoke_confirmation_url (string)
* - revoke_confirmation_active (boolean)
* - inputfield_0 (string)
* - inputfield_1 (string)
* - inputfield_2 (string)
* - inputfield_3 (string)
* - inputfield_4 (string)
* - inputfield_5 (string)
* - inputfield_6 (string)
* - inputfield_7 (string)
* - inputfield_8 (string)
* - inputfield_9 (string)
* - textarea_0 (string)
* - textarea_1 (string)
* - textarea_2 (string)
* - textarea_3 (string)
* - textarea_4 (string)
* - textarea_5 (string)
* - textarea_6 (string)
* - textarea_7 (string)
* - textarea_8 (string)
* - textarea_9 (string)
* - htmlarea_0 (string)
* - htmlarea_1 (string)
* - htmlarea_2 (string)
* - htmlarea_3 (string)
* - htmlarea_4 (string)
* - htmlarea_5 (string)
* - htmlarea_6 (string)
* - htmlarea_7 (string)
* - htmlarea_8 (string)
* - htmlarea_9 (string)
* - macro_library (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'configuration' => '', // tns:EvalancheMailingTemplateConfiguration (required)
'overwrite' => true, // boolean
];
$result = $client->setConfiguration($params);
// Rückgabewert: EvalancheMailingTemplateConfiguration
// $result->container_type (string)
// $result->external_trackingcode (string)
// $result->campaign_id (string)
// $result->externalxml_url (string)
// $result->salutation_female (string)
// $result->salutation_male (string)
// $result->salutation_company (string)
// $result->salutation_family (string)
// $result->salutation_other (string)
// $result->salutation_divers (string)
// $result->sender_email (string)
// $result->sender_name (string)
// $result->reply_name (string)
// $result->reply_email (string)
// $result->grant_url (string)
// $result->revoke_url (string)
// $result->revoke_tracking_redirect_url (string)
// $result->grant_tracking_redirect_url (string)
// $result->revoke_confirmation_url (string)
// $result->revoke_confirmation_active (boolean)
// $result->inputfield_0 (string)
// $result->inputfield_1 (string)
// $result->inputfield_2 (string)
// $result->inputfield_3 (string)
// $result->inputfield_4 (string)
// $result->inputfield_5 (string)
// $result->inputfield_6 (string)
// $result->inputfield_7 (string)
// $result->inputfield_8 (string)
// $result->inputfield_9 (string)
// $result->textarea_0 (string)
// $result->textarea_1 (string)
// $result->textarea_2 (string)
// $result->textarea_3 (string)
// $result->textarea_4 (string)
// $result->textarea_5 (string)
// $result->textarea_6 (string)
// $result->textarea_7 (string)
// $result->textarea_8 (string)
// $result->textarea_9 (string)
// $result->htmlarea_0 (string)
// $result->htmlarea_1 (string)
// $result->htmlarea_2 (string)
// $result->htmlarea_3 (string)
// $result->htmlarea_4 (string)
// $result->htmlarea_5 (string)
// $result->htmlarea_6 (string)
// $result->htmlarea_7 (string)
// $result->htmlarea_8 (string)
// $result->htmlarea_9 (string)
// $result->macro_library (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:setConfiguration xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<configuration></configuration> <!-- tns:EvalancheMailingTemplateConfiguration, required -->
<overwrite>true</overwrite> <!-- boolean, optional -->
</tns:setConfiguration>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#setConfiguration"
Authorization: Basic {base64(username:password)}
Reads the slot configuration of the specified mailing template
Rückgabewert
| Feld | Typ |
|---|---|
| items | ArrayOfEvalancheMailingSlot |
PHP Implementierung anzeigen
<?php
/**
* Reads the slot configuration of the specified mailing template
* Service: mailingtemplate
* @return EvalancheMailingSlotConfiguration
* Felder:
* - items (ArrayOfEvalancheMailingSlot)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
];
$result = $client->getSlotConfiguration($params);
// Rückgabewert: EvalancheMailingSlotConfiguration
// $result->items (ArrayOfEvalancheMailingSlot)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getSlotConfiguration xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
</tns:getSlotConfiguration>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getSlotConfiguration"
Authorization: Basic {base64(username:password)}
Adds a new slot to a mailing template
Rückgabewert
| Feld | Typ |
|---|---|
| id | int |
| name | string |
| slot_number | int |
| sort_type_id | int |
| sort_type_value | int |
| items | ArrayOfEvalancheMailingSlotItem |
PHP Implementierung anzeigen
<?php
/**
* Adds a new slot to a mailing template
* Service: mailingtemplate
* @return EvalancheMailingSlot
* Felder:
* - id (int)
* - name (string)
* - slot_number (int)
* - sort_type_id (int)
* - sort_type_value (int)
* - items (ArrayOfEvalancheMailingSlotItem)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'slot_number' => 0, // int (required)
];
$result = $client->addSlot($params);
// Rückgabewert: EvalancheMailingSlot
// $result->id (int)
// $result->name (string)
// $result->slot_number (int)
// $result->sort_type_id (int)
// $result->sort_type_value (int)
// $result->items (ArrayOfEvalancheMailingSlotItem)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:addSlot xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<slot_number>0</slot_number> <!-- int, required -->
</tns:addSlot>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#addSlot"
Authorization: Basic {base64(username:password)}
Removes an existing slot from a mailing template
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Removes an existing slot from a mailing template
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'slot_id' => 0, // int (required)
];
$result = $client->removeSlot($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:removeSlot xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<slot_id>0</slot_id> <!-- int, required -->
</tns:removeSlot>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#removeSlot"
Authorization: Basic {base64(username:password)}
Updates an existing slot
Rückgabewert
| Feld | Typ |
|---|---|
| id | int |
| name | string |
| slot_number | int |
| sort_type_id | int |
| sort_type_value | int |
| items | ArrayOfEvalancheMailingSlotItem |
PHP Implementierung anzeigen
<?php
/**
* Updates an existing slot
* Service: mailingtemplate
* @return EvalancheMailingSlot
* Felder:
* - id (int)
* - name (string)
* - slot_number (int)
* - sort_type_id (int)
* - sort_type_value (int)
* - items (ArrayOfEvalancheMailingSlotItem)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'slot_id' => 0, // int (required)
'slot_number' => 0, // int (required)
'name' => '', // string (required)
'sort_type_id' => 0, // int (required)
'sort_value' => 0, // int (required)
];
$result = $client->updateSlot($params);
// Rückgabewert: EvalancheMailingSlot
// $result->id (int)
// $result->name (string)
// $result->slot_number (int)
// $result->sort_type_id (int)
// $result->sort_type_value (int)
// $result->items (ArrayOfEvalancheMailingSlotItem)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:updateSlot xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<slot_id>0</slot_id> <!-- int, required -->
<slot_number>0</slot_number> <!-- int, required -->
<name></name> <!-- string, required -->
<sort_type_id>0</sort_type_id> <!-- int, required -->
<sort_value>0</sort_value> <!-- int, required -->
</tns:updateSlot>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#updateSlot"
Authorization: Basic {base64(username:password)}
Adds article template configurations for a certain template types to an existing slot
Rückgabewert
| Feld | Typ |
|---|---|
| article_type_id | int |
| email_article_template_id | int |
| email_allowed_article_template_ids | ArrayOfInt |
| text_article_template_id | int |
| text_allowed_article_template_ids | ArrayOfInt |
| landingpage_article_template_id | int |
| landingpage_allowed_article_template_ids | ArrayOfInt |
| pdf_article_template_id | int |
| web_article_template_id | int |
| web_allowed_article_template_ids | ArrayOfInt |
PHP Implementierung anzeigen
<?php
/**
* Adds article template configurations for a certain template types to an existing slot
* Service: mailingtemplate
* @return EvalancheMailingSlotItem
* Felder:
* - article_type_id (int)
* - email_article_template_id (int)
* - email_allowed_article_template_ids (ArrayOfInt)
* - text_article_template_id (int)
* - text_allowed_article_template_ids (ArrayOfInt)
* - landingpage_article_template_id (int)
* - landingpage_allowed_article_template_ids (ArrayOfInt)
* - pdf_article_template_id (int)
* - web_article_template_id (int)
* - web_allowed_article_template_ids (ArrayOfInt)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'slot_id' => 0, // int (required)
'data' => '', // tns:EvalancheHashMap (required)
'article_type_id' => 0, // int
'allowed_templates' => '', // tns:ArrayOfEvalancheMailingSlotAllowedTemplatesItem
];
$result = $client->addTemplatesToSlot($params);
// Rückgabewert: EvalancheMailingSlotItem
// $result->article_type_id (int)
// $result->email_article_template_id (int)
// $result->email_allowed_article_template_ids (ArrayOfInt)
// $result->text_article_template_id (int)
// $result->text_allowed_article_template_ids (ArrayOfInt)
// $result->landingpage_article_template_id (int)
// $result->landingpage_allowed_article_template_ids (ArrayOfInt)
// $result->pdf_article_template_id (int)
// $result->web_article_template_id (int)
// $result->web_allowed_article_template_ids (ArrayOfInt)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:addTemplatesToSlot xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<slot_id>0</slot_id> <!-- int, required -->
<data></data> <!-- tns:EvalancheHashMap, required -->
<article_type_id>0</article_type_id> <!-- int, optional -->
<allowed_templates></allowed_templates> <!-- tns:ArrayOfEvalancheMailingSlotAllowedTemplatesItem, optional -->
</tns:addTemplatesToSlot>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#addTemplatesToSlot"
Authorization: Basic {base64(username:password)}
Removes an article template configuration for a certain template type from an existing slot
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Removes an article template configuration for a certain template type from an existing slot
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'slot_id' => 0, // int (required)
'template_type' => 0, // int (required)
'article_type_id' => 0, // int
];
$result = $client->removeTemplateFromSlot($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:removeTemplateFromSlot xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<slot_id>0</slot_id> <!-- int, required -->
<template_type>0</template_type> <!-- int, required -->
<article_type_id>0</article_type_id> <!-- int, optional -->
</tns:removeTemplateFromSlot>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#removeTemplateFromSlot"
Authorization: Basic {base64(username:password)}
Update existing article template configurations
Rückgabewert
| Feld | Typ |
|---|---|
| article_type_id | int |
| email_article_template_id | int |
| email_allowed_article_template_ids | ArrayOfInt |
| text_article_template_id | int |
| text_allowed_article_template_ids | ArrayOfInt |
| landingpage_article_template_id | int |
| landingpage_allowed_article_template_ids | ArrayOfInt |
| pdf_article_template_id | int |
| web_article_template_id | int |
| web_allowed_article_template_ids | ArrayOfInt |
PHP Implementierung anzeigen
<?php
/**
* Update existing article template configurations
* Service: mailingtemplate
* @return EvalancheMailingSlotItem
* Felder:
* - article_type_id (int)
* - email_article_template_id (int)
* - email_allowed_article_template_ids (ArrayOfInt)
* - text_article_template_id (int)
* - text_allowed_article_template_ids (ArrayOfInt)
* - landingpage_article_template_id (int)
* - landingpage_allowed_article_template_ids (ArrayOfInt)
* - pdf_article_template_id (int)
* - web_article_template_id (int)
* - web_allowed_article_template_ids (ArrayOfInt)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'slot_id' => 0, // int (required)
'data' => '', // tns:EvalancheHashMap (required)
'article_type_id' => 0, // int
'allowed_templates' => '', // tns:ArrayOfEvalancheMailingSlotAllowedTemplatesItem
];
$result = $client->updateSlotTemplates($params);
// Rückgabewert: EvalancheMailingSlotItem
// $result->article_type_id (int)
// $result->email_article_template_id (int)
// $result->email_allowed_article_template_ids (ArrayOfInt)
// $result->text_article_template_id (int)
// $result->text_allowed_article_template_ids (ArrayOfInt)
// $result->landingpage_article_template_id (int)
// $result->landingpage_allowed_article_template_ids (ArrayOfInt)
// $result->pdf_article_template_id (int)
// $result->web_article_template_id (int)
// $result->web_allowed_article_template_ids (ArrayOfInt)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:updateSlotTemplates xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<slot_id>0</slot_id> <!-- int, required -->
<data></data> <!-- tns:EvalancheHashMap, required -->
<article_type_id>0</article_type_id> <!-- int, optional -->
<allowed_templates></allowed_templates> <!-- tns:ArrayOfEvalancheMailingSlotAllowedTemplatesItem, optional -->
</tns:updateSlotTemplates>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#updateSlotTemplates"
Authorization: Basic {base64(username:password)}
Retrieves the mailing template sources codes
Rückgabewert
| Feld | Typ |
|---|---|
| string | |
| text | string |
| web | string |
| landingpage | string |
PHP Implementierung anzeigen
<?php
/**
* Retrieves the mailing template sources codes
* Service: mailingtemplate
* @return EvalancheMailingSources
* Felder:
* - email (string)
* - text (string)
* - web (string)
* - landingpage (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
];
$result = $client->getSources($params);
// Rückgabewert: EvalancheMailingSources
// $result->email (string)
// $result->text (string)
// $result->web (string)
// $result->landingpage (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getSources xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
</tns:getSources>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getSources"
Authorization: Basic {base64(username:password)}
Sets the mailing template source codes
Rückgabewert
| Feld | Typ |
|---|---|
| string | |
| text | string |
| web | string |
| landingpage | string |
PHP Implementierung anzeigen
<?php
/**
* Sets the mailing template source codes
* Service: mailingtemplate
* @return EvalancheMailingSources
* Felder:
* - email (string)
* - text (string)
* - web (string)
* - landingpage (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'sources' => '', // tns:EvalancheMailingSources (required)
'overwrite' => true, // boolean
];
$result = $client->setSources($params);
// Rückgabewert: EvalancheMailingSources
// $result->email (string)
// $result->text (string)
// $result->web (string)
// $result->landingpage (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:setSources xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<sources></sources> <!-- tns:EvalancheMailingSources, required -->
<overwrite>true</overwrite> <!-- boolean, optional -->
</tns:setSources>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#setSources"
Authorization: Basic {base64(username:password)}
Get the list of pre-configured articles of the mailing template
Rückgabewert
| Feld | Typ |
|---|---|
| item | MailingArticle |
PHP Implementierung anzeigen
<?php
/**
* Get the list of pre-configured articles of the mailing template
* Service: mailingtemplate
* @return ArrayOfMailingArticle
* Felder:
* - item (MailingArticle)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
];
$result = $client->getArticles($params);
// Rückgabewert: ArrayOfMailingArticle
// $result->item (MailingArticle)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getArticles xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
</tns:getArticles>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getArticles"
Authorization: Basic {base64(username:password)}
Remove all pre-configured articles from the mailing template
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Remove all pre-configured articles from the mailing template
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
];
$result = $client->removeAllArticles($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:removeAllArticles xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
</tns:removeAllArticles>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#removeAllArticles"
Authorization: Basic {base64(username:password)}
Remove a pre-configured article from the mailing template
Rückgabewert
| Feld | Typ |
|---|---|
| item | MailingArticle |
PHP Implementierung anzeigen
<?php
/**
* Remove a pre-configured article from the mailing template
* Service: mailingtemplate
* @return ArrayOfMailingArticle
* Felder:
* - item (MailingArticle)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'reference_ids' => '', // tns:ArrayOfInt
];
$result = $client->removeArticles($params);
// Rückgabewert: ArrayOfMailingArticle
// $result->item (MailingArticle)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:removeArticles xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<reference_ids></reference_ids> <!-- tns:ArrayOfInt, optional -->
</tns:removeArticles>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#removeArticles"
Authorization: Basic {base64(username:password)}
Adds articles to the mailing template
Rückgabewert
| Feld | Typ |
|---|---|
| item | MailingArticle |
PHP Implementierung anzeigen
<?php
/**
* Adds articles to the mailing template
* Service: mailingtemplate
* @return ArrayOfMailingArticle
* Felder:
* - item (MailingArticle)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mailing_template_id' => 0, // int (required)
'articles' => '', // tns:ArrayOfMailingArticle (required)
];
$result = $client->addArticles($params);
// Rückgabewert: ArrayOfMailingArticle
// $result->item (MailingArticle)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:addArticles xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mailing_template_id>0</mailing_template_id> <!-- int, required -->
<articles></articles> <!-- tns:ArrayOfMailingArticle, required -->
</tns:addArticles>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#addArticles"
Authorization: Basic {base64(username:password)}
Test if the API is available and used credentials are valid. The result's property `random_message` has absolutely *no* relevance as the values are randomly taken from http://whatthecommit.com
Rückgabewert
| Feld | Typ |
|---|---|
| status | string |
| random_message | string |
PHP Implementierung anzeigen
<?php
/**
* Test if the API is available and used credentials are valid. The result's property `random_message` has absolutely *no* relevance as the values are randomly taken from http://whatthecommit.com
* Service: mailingtemplate
* @return IsAliveResult
* Felder:
* - status (string)
* - random_message (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'isAliveResult' => '', // tns:IsAliveResult (required)
];
$result = $client->isAlive($params);
// Rückgabewert: IsAliveResult
// $result->status (string)
// $result->random_message (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:isAlive xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<isAliveResult></isAliveResult> <!-- tns:IsAliveResult, required -->
</tns:isAlive>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#isAlive"
Authorization: Basic {base64(username:password)}
Get information about the namespace's resource type ids
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheResourceTypeInformation |
PHP Implementierung anzeigen
<?php
/**
* Get information about the namespace's resource type ids
* Service: mailingtemplate
* @return ArrayOfEvalancheResourceTypeInformation
* Felder:
* - item (EvalancheResourceTypeInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'item' => '', // tns:EvalancheResourceTypeInformation (required)
];
$result = $client->getTypeIds($params);
// Rückgabewert: ArrayOfEvalancheResourceTypeInformation
// $result->item (EvalancheResourceTypeInformation)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getTypeIds xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<item></item> <!-- tns:EvalancheResourceTypeInformation, required -->
</tns:getTypeIds>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getTypeIds"
Authorization: Basic {base64(username:password)}
Get resource information for resource with id $resource_id
Rückgabewert
| Feld | Typ |
|---|---|
| url | string |
| type_id | int |
| category_id | int |
| customer_id | int |
| last_modified | int |
| id | int |
| name | string |
PHP Implementierung anzeigen
<?php
/**
* Get resource information for resource with id $resource_id
* Service: mailingtemplate
* @return EvalancheResourceInformation
* Felder:
* - url (string)
* - type_id (int)
* - category_id (int)
* - customer_id (int)
* - last_modified (int)
* - id (int)
* - name (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
];
$result = $client->getById($params);
// Rückgabewert: EvalancheResourceInformation
// $result->url (string)
// $result->type_id (int)
// $result->category_id (int)
// $result->customer_id (int)
// $result->last_modified (int)
// $result->id (int)
// $result->name (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getById xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
</tns:getById>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getById"
Authorization: Basic {base64(username:password)}
Get resources by category id
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheResourceInformation |
PHP Implementierung anzeigen
<?php
/**
* Get resources by category id
* Service: mailingtemplate
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'category_id' => 0, // int (required)
];
$result = $client->getByCategory($params);
// Rückgabewert: ArrayOfEvalancheResourceInformation
// $result->item (EvalancheResourceInformation)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getByCategory xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<category_id>0</category_id> <!-- int, required -->
</tns:getByCategory>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getByCategory"
Authorization: Basic {base64(username:password)}
Get all resources of this namespace's type
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheResourceInformation |
PHP Implementierung anzeigen
<?php
/**
* Get all resources of this namespace's type
* Service: mailingtemplate
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'mandator_id' => 0, // int
];
$result = $client->getAll($params);
// Rückgabewert: ArrayOfEvalancheResourceInformation
// $result->item (EvalancheResourceInformation)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getAll xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<mandator_id>0</mandator_id> <!-- int, optional -->
</tns:getAll>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getAll"
Authorization: Basic {base64(username:password)}
Get information about this namespace's default category
Rückgabewert
| Feld | Typ |
|---|---|
| id | int |
| name | string |
| parent_id | int |
PHP Implementierung anzeigen
<?php
/**
* Get information about this namespace's default category
* Service: mailingtemplate
* @return EvalancheCategoryInformation
* Felder:
* - id (int)
* - name (string)
* - parent_id (int)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'customer_id' => 0, // int
];
$result = $client->getResourceDefaultCategory($params);
// Rückgabewert: EvalancheCategoryInformation
// $result->id (int)
// $result->name (string)
// $result->parent_id (int)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getResourceDefaultCategory xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<customer_id>0</customer_id> <!-- int, optional -->
</tns:getResourceDefaultCategory>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getResourceDefaultCategory"
Authorization: Basic {base64(username:password)}
Get all resources within this namespace with the given resource type id (see method getTypeIds)
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheResourceInformation |
PHP Implementierung anzeigen
<?php
/**
* Get all resources within this namespace with the given resource type id (see method getTypeIds)
* Service: mailingtemplate
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'type_id' => 0, // int (required)
'mandator_id' => 0, // int
];
$result = $client->getByTypeId($params);
// Rückgabewert: ArrayOfEvalancheResourceInformation
// $result->item (EvalancheResourceInformation)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getByTypeId xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<type_id>0</type_id> <!-- int, required -->
<mandator_id>0</mandator_id> <!-- int, optional -->
</tns:getByTypeId>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getByTypeId"
Authorization: Basic {base64(username:password)}
Get resource information for resource by external id
Rückgabewert
| Feld | Typ |
|---|---|
| url | string |
| type_id | int |
| category_id | int |
| customer_id | int |
| last_modified | int |
| id | int |
| name | string |
PHP Implementierung anzeigen
<?php
/**
* Get resource information for resource by external id
* Service: mailingtemplate
* @return EvalancheResourceInformation
* Felder:
* - url (string)
* - type_id (int)
* - category_id (int)
* - customer_id (int)
* - last_modified (int)
* - id (int)
* - name (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'external_id' => '', // string (required)
];
$result = $client->getByExternalId($params);
// Rückgabewert: EvalancheResourceInformation
// $result->url (string)
// $result->type_id (int)
// $result->category_id (int)
// $result->customer_id (int)
// $result->last_modified (int)
// $result->id (int)
// $result->name (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:getByExternalId xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<external_id></external_id> <!-- string, required -->
</tns:getByExternalId>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#getByExternalId"
Authorization: Basic {base64(username:password)}
Creates a copy of the resource specified by the $resource_id
Rückgabewert
| Feld | Typ |
|---|---|
| url | string |
| type_id | int |
| category_id | int |
| customer_id | int |
| last_modified | int |
| id | int |
| name | string |
PHP Implementierung anzeigen
<?php
/**
* Creates a copy of the resource specified by the $resource_id
* Service: mailingtemplate
* @return EvalancheResourceInformation
* Felder:
* - url (string)
* - type_id (int)
* - category_id (int)
* - customer_id (int)
* - last_modified (int)
* - id (int)
* - name (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
'category_id' => 0, // int
];
$result = $client->copy($params);
// Rückgabewert: EvalancheResourceInformation
// $result->url (string)
// $result->type_id (int)
// $result->category_id (int)
// $result->customer_id (int)
// $result->last_modified (int)
// $result->id (int)
// $result->name (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:copy xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
<category_id>0</category_id> <!-- int, optional -->
</tns:copy>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#copy"
Authorization: Basic {base64(username:password)}
Moves the resource specified by the $resource_id to another category
Rückgabewert
| Feld | Typ |
|---|---|
| url | string |
| type_id | int |
| category_id | int |
| customer_id | int |
| last_modified | int |
| id | int |
| name | string |
PHP Implementierung anzeigen
<?php
/**
* Moves the resource specified by the $resource_id to another category
* Service: mailingtemplate
* @return EvalancheResourceInformation
* Felder:
* - url (string)
* - type_id (int)
* - category_id (int)
* - customer_id (int)
* - last_modified (int)
* - id (int)
* - name (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
'category_id' => 0, // int (required)
];
$result = $client->move($params);
// Rückgabewert: EvalancheResourceInformation
// $result->url (string)
// $result->type_id (int)
// $result->category_id (int)
// $result->customer_id (int)
// $result->last_modified (int)
// $result->id (int)
// $result->name (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:move xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
<category_id>0</category_id> <!-- int, required -->
</tns:move>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#move"
Authorization: Basic {base64(username:password)}
Deletes the resource
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Deletes the resource
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
];
$result = $client->delete($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:delete xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
</tns:delete>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#delete"
Authorization: Basic {base64(username:password)}
Renames the resource
Rückgabewert
| Feld | Typ |
|---|---|
| url | string |
| type_id | int |
| category_id | int |
| customer_id | int |
| last_modified | int |
| id | int |
| name | string |
PHP Implementierung anzeigen
<?php
/**
* Renames the resource
* Service: mailingtemplate
* @return EvalancheResourceInformation
* Felder:
* - url (string)
* - type_id (int)
* - category_id (int)
* - customer_id (int)
* - last_modified (int)
* - id (int)
* - name (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
'name' => '', // string (required)
];
$result = $client->rename($params);
// Rückgabewert: EvalancheResourceInformation
// $result->url (string)
// $result->type_id (int)
// $result->category_id (int)
// $result->customer_id (int)
// $result->last_modified (int)
// $result->id (int)
// $result->name (string)
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:rename xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
<name></name> <!-- string, required -->
</tns:rename>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#rename"
Authorization: Basic {base64(username:password)}
Updates the module-types storage
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Updates the module-types storage
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
'module_type_content' => '', // string (required)
];
$result = $client->updateModuleTypes($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:updateModuleTypes xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
<module_type_content></module_type_content> <!-- string, required -->
</tns:updateModuleTypes>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#updateModuleTypes"
Authorization: Basic {base64(username:password)}
Retrieves module-types
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Retrieves module-types
* Service: mailingtemplate
* @return string
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
];
$result = $client->retrieveModuleTypes($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:retrieveModuleTypes xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
</tns:retrieveModuleTypes>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#retrieveModuleTypes"
Authorization: Basic {base64(username:password)}
Updates module configuration
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Updates module configuration
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
'module_content' => '', // string (required)
];
$result = $client->updateModuleConfiguration($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:updateModuleConfiguration xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
<module_content></module_content> <!-- string, required -->
</tns:updateModuleConfiguration>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#updateModuleConfiguration"
Authorization: Basic {base64(username:password)}
Retrieves module configurations
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Retrieves module configurations
* Service: mailingtemplate
* @return string
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
];
$result = $client->retrieveModuleConfiguration($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:retrieveModuleConfiguration xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
</tns:retrieveModuleConfiguration>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#retrieveModuleConfiguration"
Authorization: Basic {base64(username:password)}
Updates global module configuration
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Updates global module configuration
* Service: mailingtemplate
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
'global_module_content' => '', // string (required)
];
$result = $client->updateGlobalModuleConfiguration($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:updateGlobalModuleConfiguration xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
<global_module_content></global_module_content> <!-- string, required -->
</tns:updateGlobalModuleConfiguration>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#updateGlobalModuleConfiguration"
Authorization: Basic {base64(username:password)}
Retrieves global module configurations
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Retrieves global module configurations
* Service: mailingtemplate
* @return string
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mailingtemplate';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'resource_id' => 0, // int (required)
];
$result = $client->retrieveGlobalModuleConfiguration($params);
print_r($result);
} catch (SoapFault $e) {
echo 'SOAP Fehler: ' . $e->getMessage();
}
XML SOAP Request anzeigen
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<tns:retrieveGlobalModuleConfiguration xmlns:tns="https://scnem.com/soap.php/wsdl/mailingtemplate">
<resource_id>0</resource_id> <!-- int, required -->
</tns:retrieveGlobalModuleConfiguration>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mailingtemplate#retrieveGlobalModuleConfiguration"
Authorization: Basic {base64(username:password)}