smartlink
18 Methoden verfügbar
Keine Methoden gefunden für ""
getTrackingUrls
Rückgabewert
| Feld | Typ |
|---|---|
| item | SmartlinkLink |
PHP Implementierung anzeigen
<?php
/**
* getTrackingUrls
* Service: smartlink
* @return ArrayOfSmartlinkLink
* Felder:
* - item (SmartlinkLink)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'smartlink_id' => 0, // int (required)
];
$result = $client->getTrackingUrls($params);
// Rückgabewert: ArrayOfSmartlinkLink
// $result->item (SmartlinkLink)
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:getTrackingUrls xmlns:tns="https://scnem.com/soap.php/wsdl/smartlink">
<smartlink_id>0</smartlink_id> <!-- int, required -->
</tns:getTrackingUrls>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/smartlink#getTrackingUrls"
Authorization: Basic {base64(username:password)}
Creates a new smartlink object within the given 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
/**
* Creates a new smartlink object within the given category.
* Service: smartlink
* @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/smartlink';
$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/smartlink">
<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/smartlink#create"
Authorization: Basic {base64(username:password)}
Appends a new link to an existing smartlink objects
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Appends a new link to an existing smartlink objects
* Service: smartlink
* @return string
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'smartlink_id' => 0, // int (required)
'link_name' => '', // string (required)
'link_url' => '', // string (required)
];
$result = $client->createLink($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:createLink xmlns:tns="https://scnem.com/soap.php/wsdl/smartlink">
<smartlink_id>0</smartlink_id> <!-- int, required -->
<link_name></link_name> <!-- string, required -->
<link_url></link_url> <!-- string, required -->
</tns:createLink>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/smartlink#createLink"
Authorization: Basic {base64(username:password)}
Returns all link configurations from an existing smartlink link object
Rückgabewert
| Feld | Typ |
|---|---|
| item | EvalancheSmartlinkLinkConfiguration |
PHP Implementierung anzeigen
<?php
/**
* Returns all link configurations from an existing smartlink link object
* Service: smartlink
* @return ArrayOfEvalancheSmartlinkLinkConfiguration
* Felder:
* - item (EvalancheSmartlinkLinkConfiguration)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'smartlink_link_id' => '', // long (required)
];
$result = $client->getLinkConfigurations($params);
// Rückgabewert: ArrayOfEvalancheSmartlinkLinkConfiguration
// $result->item (EvalancheSmartlinkLinkConfiguration)
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:getLinkConfigurations xmlns:tns="https://scnem.com/soap.php/wsdl/smartlink">
<smartlink_link_id></smartlink_link_id> <!-- long, required -->
</tns:getLinkConfigurations>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/smartlink#getLinkConfigurations"
Authorization: Basic {base64(username:password)}
Sets all link configurations from an existing smartlink link object
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Sets all link configurations from an existing smartlink link object
* Service: smartlink
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'smartlink_link_id' => '', // long (required)
'items' => '', // tns:ArrayOfEvalancheSmartlinkLinkConfiguration (required)
];
$result = $client->setLinkConfigurations($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:setLinkConfigurations xmlns:tns="https://scnem.com/soap.php/wsdl/smartlink">
<smartlink_link_id></smartlink_link_id> <!-- long, required -->
<items></items> <!-- tns:ArrayOfEvalancheSmartlinkLinkConfiguration, required -->
</tns:setLinkConfigurations>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/smartlink#setLinkConfigurations"
Authorization: Basic {base64(username:password)}
Adds new link configurations to an existing smartlink link object
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Adds new link configurations to an existing smartlink link object
* Service: smartlink
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$username = 'DEIN_USERNAME';
$password = 'DEIN_PASSWORD';
$options = [
'login' => $username,
'password' => $password,
'trace' => true,
'exceptions' => true,
];
try {
$client = new SoapClient($wsdlUrl, $options);
// Parameter
$params = [
'smartlink_link_id' => '', // long (required)
'items' => '', // tns:ArrayOfEvalancheSmartlinkLinkConfiguration (required)
];
$result = $client->createLinkConfigurations($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:createLinkConfigurations xmlns:tns="https://scnem.com/soap.php/wsdl/smartlink">
<smartlink_link_id></smartlink_link_id> <!-- long, required -->
<items></items> <!-- tns:ArrayOfEvalancheSmartlinkLinkConfiguration, required -->
</tns:createLinkConfigurations>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
HTTP Header:
Content-Type: text/xml; charset=utf-8
SOAPAction: "https://scnem.com/soap.php/wsdl/smartlink#createLinkConfigurations"
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: smartlink
* @return IsAliveResult
* Felder:
* - status (string)
* - random_message (string)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @return ArrayOfEvalancheResourceTypeInformation
* Felder:
* - item (EvalancheResourceTypeInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @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/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @return EvalancheCategoryInformation
* Felder:
* - id (int)
* - name (string)
* - parent_id (int)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @return ArrayOfEvalancheResourceInformation
* Felder:
* - item (EvalancheResourceInformation)
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @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/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @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/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @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/smartlink';
$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/smartlink">
<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/smartlink#move"
Authorization: Basic {base64(username:password)}
Deletes the resource
Rückgabewert
PHP Implementierung anzeigen
<?php
/**
* Deletes the resource
* Service: smartlink
* @return boolean
*/
$wsdlUrl = 'https://scnem.com/soap.php/wsdl/smartlink';
$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/smartlink">
<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/smartlink#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: smartlink
* @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/smartlink';
$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/smartlink">
<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/smartlink#rename"
Authorization: Basic {base64(username:password)}