targetgroup
14 Methoden verfügbar
Keine Methoden gefunden für ""
Creates a targetgroup by the given attribute option
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 targetgroup by the given attribute option
* Service: targetgroup
* @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/targetgroup';
$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)
'attribute_id' => 0, // int (required)
'option_id' => 0, // int (required)
'category_id' => 0, // int (required)
'name' => '', // string (required)
];
$result = $client->createByOption($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:createByOption xmlns:tns="https://scnem.com/soap.php/wsdl/targetgroup">
<pool_id>0</pool_id> <!-- int, required -->
<attribute_id>0</attribute_id> <!-- int, required -->
<option_id>0</option_id> <!-- int, required -->
<category_id>0</category_id> <!-- int, required -->
<name></name> <!-- string, required -->
</tns:createByOption>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/targetgroup#createByOption"
Authorization: Basic {base64(username:password)}
Get information about specific targetgroup
Rückgabewert
| Feld | Typ |
|---|---|
| name | string |
| profile_count | int |
PHP Implementierung anzeigen
<?php
/**
* Get information about specific targetgroup
* Service: targetgroup
* @return EvalancheTargetgroupInformation
* Felder:
* - name (string)
* - profile_count (int)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'targetgroup_id' => 0, // int (required)
];
$result = $client->getInformation($params);
// Rückgabewert: EvalancheTargetgroupInformation
// $result->name (string)
// $result->profile_count (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:getInformation xmlns:tns="https://scnem.com/soap.php/wsdl/targetgroup">
<targetgroup_id>0</targetgroup_id> <!-- int, required -->
</tns:getInformation>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/targetgroup#getInformation"
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: targetgroup
* @return IsAliveResult
* Felder:
* - status (string)
* - random_message (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @return ArrayOfEvalancheResourceTypeInformation
* Felder:
* - item (EvalancheResourceTypeInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @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/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @return EvalancheCategoryInformation
* Felder:
* - id (int)
* - name (string)
* - parent_id (int)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @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/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @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/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @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/targetgroup';
$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/targetgroup">
<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/targetgroup#move"
Authorization: Basic {base64(username:password)}
Deletes the resource
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Deletes the resource
* Service: targetgroup
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/targetgroup';
$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/targetgroup">
<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/targetgroup#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: targetgroup
* @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/targetgroup';
$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/targetgroup">
<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/targetgroup#rename"
Authorization: Basic {base64(username:password)}