form
28 Methoden verfügbar
Keine Methoden gefunden für ""
Get statistic data for formular_id, optional with its form aliases
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheFormStatistics |
PHP Implementierung anzeigen
<?php
/**
* Get statistic data for formular_id, optional with its form aliases
* Service: form
* @return ArrayOfEvalancheFormStatistics
* Felder:
* - item (EvalancheFormStatistics)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'formular_id' => 0, // int (required)
'with_aliases' => true, // boolean
];
$result = $client->getStatistics($params);
// Rückgabewert: ArrayOfEvalancheFormStatistics
// $result->item (EvalancheFormStatistics)
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:getStatistics xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<formular_id>0</formular_id> <!-- int, required -->
<with_aliases>true</with_aliases> <!-- boolean, optional -->
</tns:getStatistics>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#getStatistics"
Authorization: Basic {base64(username:password)}
Create Form
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
/**
* Create Form
* Service: form
* @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/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'pool_id' => 0, // int (required)
'name' => '', // string (required)
];
$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/form">
<pool_id>0</pool_id> <!-- int, required -->
<name></name> <!-- string, required -->
</tns:create>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#create"
Authorization: Basic {base64(username:password)}
Creates alias of specified form
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 alias of specified form
* Service: form
* @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/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'name' => '', // string (required)
'category_id' => 0, // int
];
$result = $client->createAlias($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:createAlias xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
<name></name> <!-- string, required -->
<category_id>0</category_id> <!-- int, optional -->
</tns:createAlias>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#createAlias"
Authorization: Basic {base64(username:password)}
Returns list of form aliases of the form specified by $form_id
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheResourceInformation |
PHP Implementierung anzeigen
<?php
/**
* Returns list of form aliases of the form specified by $form_id
* Service: form
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
];
$result = $client->getAliases($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:getAliases xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
</tns:getAliases>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#getAliases"
Authorization: Basic {base64(username:password)}
Updates the individual template of the form specified by $form_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
/**
* Updates the individual template of the form specified by $form_id
* Service: form
* @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/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'source' => '', // string (required)
];
$result = $client->updateTemplate($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:updateTemplate xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
<source></source> <!-- string, required -->
</tns:updateTemplate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#updateTemplate"
Authorization: Basic {base64(username:password)}
Gets by the id of an form alias
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
/**
* Gets by the id of an form alias
* Service: form
* @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/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'formalias_id' => 0, // int (required)
];
$result = $client->getFormByAlias($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:getFormByAlias xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<formalias_id>0</formalias_id> <!-- int, required -->
</tns:getFormByAlias>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#getFormByAlias"
Authorization: Basic {base64(username:password)}
Adds an option to an attribute in a form
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Adds an option to an attribute in a form
* Service: form
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'option_id' => 0, // int (required)
];
$result = $client->addAttributeOption($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:addAttributeOption xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
<option_id>0</option_id> <!-- int, required -->
</tns:addAttributeOption>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#addAttributeOption"
Authorization: Basic {base64(username:password)}
Removes an option from a from attribute
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Removes an option from a from attribute
* Service: form
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'option_id' => 0, // int (required)
];
$result = $client->removeAttributeOption($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:removeAttributeOption xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
<option_id>0</option_id> <!-- int, required -->
</tns:removeAttributeOption>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#removeAttributeOption"
Authorization: Basic {base64(username:password)}
addAttribute
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* addAttribute
* Service: form
* @return int
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'pool_attribute_id' => 0, // int (required)
];
$result = $client->addAttribute($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:addAttribute xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
<pool_attribute_id>0</pool_attribute_id> <!-- int, required -->
</tns:addAttribute>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#addAttribute"
Authorization: Basic {base64(username:password)}
removeAttribute
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* removeAttribute
* Service: form
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'form_attribute_id' => 0, // int (required)
];
$result = $client->removeAttribute($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:removeAttribute xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
<form_attribute_id>0</form_attribute_id> <!-- int, required -->
</tns:removeAttribute>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#removeAttribute"
Authorization: Basic {base64(username:password)}
Reads the configuration of the specified form
Rückgabewert
| Feld | Typ |
|---|---|
| unique_entry_criteria_id | string |
| block_duplicates | string |
| do_not_reset_unsubscription | string |
| permission_mode | string |
| enable_post_address_validation | string |
| success_url | string |
| emailing_id | string |
| emailing_targetgroup_id | string |
| newsletter_bcc_recipient_email | string |
| inquiry_emailing_id | string |
| inquiry_send_on_change | string |
| inquiry_recipient_emails | string |
| form_language | string |
| enable_automated_entry_protection | string |
| re_captcha_activated | string |
| is_mobile_optimized | string |
| is_auto_submit_form | string |
| validation_form_id | string |
| auto_form_action_activated | string |
| form_api_state | string |
| form_api_cors_domains | string |
| external_trackingcode | string |
PHP Implementierung anzeigen
<?php
/**
* Reads the configuration of the specified form
* Service: form
* @return EvalancheFormConfiguration
* Felder:
* - unique_entry_criteria_id (string)
* - block_duplicates (string)
* - do_not_reset_unsubscription (string)
* - permission_mode (string)
* - enable_post_address_validation (string)
* - success_url (string)
* - emailing_id (string)
* - emailing_targetgroup_id (string)
* - newsletter_bcc_recipient_email (string)
* - inquiry_emailing_id (string)
* - inquiry_send_on_change (string)
* - inquiry_recipient_emails (string)
* - form_language (string)
* - enable_automated_entry_protection (string)
* - re_captcha_activated (string)
* - is_mobile_optimized (string)
* - is_auto_submit_form (string)
* - validation_form_id (string)
* - auto_form_action_activated (string)
* - form_api_state (string)
* - form_api_cors_domains (string)
* - external_trackingcode (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
];
$result = $client->getConfiguration($params);
// Rückgabewert: EvalancheFormConfiguration
// $result->unique_entry_criteria_id (string)
// $result->block_duplicates (string)
// $result->do_not_reset_unsubscription (string)
// $result->permission_mode (string)
// $result->enable_post_address_validation (string)
// $result->success_url (string)
// $result->emailing_id (string)
// $result->emailing_targetgroup_id (string)
// $result->newsletter_bcc_recipient_email (string)
// $result->inquiry_emailing_id (string)
// $result->inquiry_send_on_change (string)
// $result->inquiry_recipient_emails (string)
// $result->form_language (string)
// $result->enable_automated_entry_protection (string)
// $result->re_captcha_activated (string)
// $result->is_mobile_optimized (string)
// $result->is_auto_submit_form (string)
// $result->validation_form_id (string)
// $result->auto_form_action_activated (string)
// $result->form_api_state (string)
// $result->form_api_cors_domains (string)
// $result->external_trackingcode (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/form">
<form_id>0</form_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/form#getConfiguration"
Authorization: Basic {base64(username:password)}
Sets the configuration for the specified form
Rückgabewert
| Feld | Typ |
|---|---|
| unique_entry_criteria_id | string |
| block_duplicates | string |
| do_not_reset_unsubscription | string |
| permission_mode | string |
| enable_post_address_validation | string |
| success_url | string |
| emailing_id | string |
| emailing_targetgroup_id | string |
| newsletter_bcc_recipient_email | string |
| inquiry_emailing_id | string |
| inquiry_send_on_change | string |
| inquiry_recipient_emails | string |
| form_language | string |
| enable_automated_entry_protection | string |
| re_captcha_activated | string |
| is_mobile_optimized | string |
| is_auto_submit_form | string |
| validation_form_id | string |
| auto_form_action_activated | string |
| form_api_state | string |
| form_api_cors_domains | string |
| external_trackingcode | string |
PHP Implementierung anzeigen
<?php
/**
* Sets the configuration for the specified form
* Service: form
* @return EvalancheFormConfiguration
* Felder:
* - unique_entry_criteria_id (string)
* - block_duplicates (string)
* - do_not_reset_unsubscription (string)
* - permission_mode (string)
* - enable_post_address_validation (string)
* - success_url (string)
* - emailing_id (string)
* - emailing_targetgroup_id (string)
* - newsletter_bcc_recipient_email (string)
* - inquiry_emailing_id (string)
* - inquiry_send_on_change (string)
* - inquiry_recipient_emails (string)
* - form_language (string)
* - enable_automated_entry_protection (string)
* - re_captcha_activated (string)
* - is_mobile_optimized (string)
* - is_auto_submit_form (string)
* - validation_form_id (string)
* - auto_form_action_activated (string)
* - form_api_state (string)
* - form_api_cors_domains (string)
* - external_trackingcode (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'configuration' => '', // tns:EvalancheFormConfiguration (required)
'overwrite' => true, // boolean
];
$result = $client->setConfiguration($params);
// Rückgabewert: EvalancheFormConfiguration
// $result->unique_entry_criteria_id (string)
// $result->block_duplicates (string)
// $result->do_not_reset_unsubscription (string)
// $result->permission_mode (string)
// $result->enable_post_address_validation (string)
// $result->success_url (string)
// $result->emailing_id (string)
// $result->emailing_targetgroup_id (string)
// $result->newsletter_bcc_recipient_email (string)
// $result->inquiry_emailing_id (string)
// $result->inquiry_send_on_change (string)
// $result->inquiry_recipient_emails (string)
// $result->form_language (string)
// $result->enable_automated_entry_protection (string)
// $result->re_captcha_activated (string)
// $result->is_mobile_optimized (string)
// $result->is_auto_submit_form (string)
// $result->validation_form_id (string)
// $result->auto_form_action_activated (string)
// $result->form_api_state (string)
// $result->form_api_cors_domains (string)
// $result->external_trackingcode (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/form">
<form_id>0</form_id> <!-- int, required -->
<configuration></configuration> <!-- tns:EvalancheFormConfiguration, 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/form#setConfiguration"
Authorization: Basic {base64(username:password)}
Toggles the state of the individual html-template mode
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Toggles the state of the individual html-template mode
* Service: form
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => 0, // int (required)
'enabled' => true, // boolean (required)
];
$result = $client->toggleHtmlTemplateMode($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:toggleHtmlTemplateMode xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id>0</form_id> <!-- int, required -->
<enabled>true</enabled> <!-- boolean, required -->
</tns:toggleHtmlTemplateMode>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#toggleHtmlTemplateMode"
Authorization: Basic {base64(username:password)}
Returns a list of all attributes of this form
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheFormAttribute |
PHP Implementierung anzeigen
<?php
/**
* Returns a list of all attributes of this form
* Service: form
* @return ArrayOfEvalancheFormAttribute
* Felder:
* - item (EvalancheFormAttribute)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => '', // long (required)
];
$result = $client->getAttributes($params);
// Rückgabewert: ArrayOfEvalancheFormAttribute
// $result->item (EvalancheFormAttribute)
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:getAttributes xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id></form_id> <!-- long, required -->
</tns:getAttributes>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#getAttributes"
Authorization: Basic {base64(username:password)}
Updates the configuration of an attribute
Rückgabewert
| Feld | Typ |
|---|---|
| id | long |
| pool_attribute_id | long |
| widget | string |
| possible_widgets | ArrayOfString |
| label | string |
| mandatory | boolean |
| order_x | int |
| order_y | int |
| validation_error_text | string |
| default_value_priority | string |
| only_shown_when_empty | boolean |
| write_protected | boolean |
| has_options | boolean |
| options | ArrayOfEvalancheFormAttributeOption |
| default | string |
PHP Implementierung anzeigen
<?php
/**
* Updates the configuration of an attribute
* Service: form
* @return EvalancheFormAttribute
* Felder:
* - id (long)
* - pool_attribute_id (long)
* - widget (string)
* - possible_widgets (ArrayOfString)
* - label (string)
* - mandatory (boolean)
* - order_x (int)
* - order_y (int)
* - validation_error_text (string)
* - default_value_priority (string)
* - only_shown_when_empty (boolean)
* - write_protected (boolean)
* - has_options (boolean)
* - options (ArrayOfEvalancheFormAttributeOption)
* - default (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => '', // long (required)
'form_attribute_id' => '', // long (required)
'configuration' => '', // tns:EvalancheFormAttributeUpdate (required)
];
$result = $client->updateAttribute($params);
// Rückgabewert: EvalancheFormAttribute
// $result->id (long)
// $result->pool_attribute_id (long)
// $result->widget (string)
// $result->possible_widgets (ArrayOfString)
// $result->label (string)
// $result->mandatory (boolean)
// $result->order_x (int)
// $result->order_y (int)
// $result->validation_error_text (string)
// $result->default_value_priority (string)
// $result->only_shown_when_empty (boolean)
// $result->write_protected (boolean)
// $result->has_options (boolean)
// $result->options (ArrayOfEvalancheFormAttributeOption)
// $result->default (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:updateAttribute xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id></form_id> <!-- long, required -->
<form_attribute_id></form_attribute_id> <!-- long, required -->
<configuration></configuration> <!-- tns:EvalancheFormAttributeUpdate, required -->
</tns:updateAttribute>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#updateAttribute"
Authorization: Basic {base64(username:password)}
Updates the options sort-order of a form-attribute
Rückgabewert
| Feld | Typ |
|---|---|
| id | long |
| pool_attribute_id | long |
| widget | string |
| possible_widgets | ArrayOfString |
| label | string |
| mandatory | boolean |
| order_x | int |
| order_y | int |
| validation_error_text | string |
| default_value_priority | string |
| only_shown_when_empty | boolean |
| write_protected | boolean |
| has_options | boolean |
| options | ArrayOfEvalancheFormAttributeOption |
| default | string |
PHP Implementierung anzeigen
<?php
/**
* Updates the options sort-order of a form-attribute
* Service: form
* @return EvalancheFormAttribute
* Felder:
* - id (long)
* - pool_attribute_id (long)
* - widget (string)
* - possible_widgets (ArrayOfString)
* - label (string)
* - mandatory (boolean)
* - order_x (int)
* - order_y (int)
* - validation_error_text (string)
* - default_value_priority (string)
* - only_shown_when_empty (boolean)
* - write_protected (boolean)
* - has_options (boolean)
* - options (ArrayOfEvalancheFormAttributeOption)
* - default (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'form_id' => '', // long (required)
'form_attribute_id' => '', // long (required)
'form_attribute_option_ids' => '', // tns:ArrayOfLong (required)
];
$result = $client->updateAttributeOptionOrder($params);
// Rückgabewert: EvalancheFormAttribute
// $result->id (long)
// $result->pool_attribute_id (long)
// $result->widget (string)
// $result->possible_widgets (ArrayOfString)
// $result->label (string)
// $result->mandatory (boolean)
// $result->order_x (int)
// $result->order_y (int)
// $result->validation_error_text (string)
// $result->default_value_priority (string)
// $result->only_shown_when_empty (boolean)
// $result->write_protected (boolean)
// $result->has_options (boolean)
// $result->options (ArrayOfEvalancheFormAttributeOption)
// $result->default (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:updateAttributeOptionOrder xmlns:tns="https://scnem.com/soap.php/wsdl/form">
<form_id></form_id> <!-- long, required -->
<form_attribute_id></form_attribute_id> <!-- long, required -->
<form_attribute_option_ids></form_attribute_option_ids> <!-- tns:ArrayOfLong, required -->
</tns:updateAttributeOptionOrder>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/form#updateAttributeOptionOrder"
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: form
* @return IsAliveResult
* Felder:
* - status (string)
* - random_message (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$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/form">
<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/form#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: form
* @return ArrayOfEvalancheResourceTypeInformation
* Felder:
* - item (EvalancheResourceTypeInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$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/form">
<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/form#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: form
* @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/form';
$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/form">
<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/form#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: form
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$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/form">
<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/form#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: form
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$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/form">
<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/form#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: form
* @return EvalancheCategoryInformation
* Felder:
* - id (int)
* - name (string)
* - parent_id (int)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$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/form">
<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/form#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: form
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$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/form">
<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/form#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: form
* @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/form';
$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/form">
<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/form#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: form
* @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/form';
$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/form">
<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/form#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: form
* @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/form';
$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/form">
<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/form#move"
Authorization: Basic {base64(username:password)}
Deletes the resource
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Deletes the resource
* Service: form
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/form';
$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/form">
<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/form#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: form
* @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/form';
$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/form">
<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/form#rename"
Authorization: Basic {base64(username:password)}