mandator
5 Methoden verfügbar
Keine Methoden gefunden für ""
Lists all mandators available for current security context
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheMandator |
PHP Implementierung anzeigen
<?php
/**
* Lists all mandators available for current security context
* Service: mandator
* @return ArrayOfEvalancheMandator
* Felder:
* - item (EvalancheMandator)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mandator';
$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:EvalancheMandator (required)
];
$result = $client->getList($params);
// Rückgabewert: ArrayOfEvalancheMandator
// $result->item (EvalancheMandator)
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:getList xmlns:tns="https://scnem.com/soap.php/wsdl/mandator">
<item></item> <!-- tns:EvalancheMandator, required -->
</tns:getList>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mandator#getList"
Authorization: Basic {base64(username:password)}
Same as getList but for a single mandator given by mandator_id
Rückgabewert
| Feld | Typ |
|---|---|
| id | int |
| name | string |
| domain | string |
PHP Implementierung anzeigen
<?php
/**
* Same as getList but for a single mandator given by mandator_id
* Service: mandator
* @return EvalancheMandator
* Felder:
* - id (int)
* - name (string)
* - domain (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mandator';
$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 (required)
];
$result = $client->getById($params);
// Rückgabewert: EvalancheMandator
// $result->id (int)
// $result->name (string)
// $result->domain (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/mandator">
<mandator_id>0</mandator_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/mandator#getById"
Authorization: Basic {base64(username:password)}
Creates a new mandator
Rückgabewert
| Feld | Typ |
|---|---|
| id | int |
| name | string |
| domain | string |
PHP Implementierung anzeigen
<?php
/**
* Creates a new mandator
* Service: mandator
* @return EvalancheMandator
* Felder:
* - id (int)
* - name (string)
* - domain (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mandator';
$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)
'demo_mode' => true, // boolean (required)
'pricemodel_id' => 0, // int
'description' => '', // string
'industry_type' => 0, // int
];
$result = $client->create($params);
// Rückgabewert: EvalancheMandator
// $result->id (int)
// $result->name (string)
// $result->domain (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/mandator">
<name></name> <!-- string, required -->
<demo_mode>true</demo_mode> <!-- boolean, required -->
<pricemodel_id>0</pricemodel_id> <!-- int, optional -->
<description></description> <!-- string, optional -->
<industry_type>0</industry_type> <!-- 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/mandator#create"
Authorization: Basic {base64(username:password)}
Imports a pre-configured scenario into a mandator
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Imports a pre-configured scenario into a mandator
* Service: mandator
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mandator';
$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 (required)
'scenario_data' => '', // string (required)
'language_code' => '', // string (required)
];
$result = $client->importScenario($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:importScenario xmlns:tns="https://scnem.com/soap.php/wsdl/mandator">
<mandator_id>0</mandator_id> <!-- int, required -->
<scenario_data></scenario_data> <!-- string, required -->
<language_code></language_code> <!-- string, required -->
</tns:importScenario>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/mandator#importScenario"
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: mandator
* @return IsAliveResult
* Felder:
* - status (string)
* - random_message (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/mandator';
$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/mandator">
<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/mandator#isAlive"
Authorization: Basic {base64(username:password)}