Folgende SOAP-Methoden werden speziell für die Interaktion mit Artikeln bereitgestellt.
getData
Artikeldaten auslesen
EvalancheHashMap Artikel::getData(int article_id)
Details
Parameter
- int article_id: ID des Artikels
Rückgabewert
- EvalancheHashMap: EvalancheHashMap mit den Daten des Artikels
Benötigte Rechte
Artikel anzeigen
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/article">
<soapenv:Header/>
<soapenv:Body>
<art:getData>
<article_id>ARTICLE_ID</article_id>
</art:getData>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/article">
<SOAP-ENV:Body>
<ns1:getDataResponse>
<getDataResult>
<items>
<item>
<key>ARTICLE_FIELD_NAME</key>
<value>CONTENT</value>
</item>
<item>
<key>ARTICLE_FIELD_NAME</key>
<value>CONTENT</value>
</item>
[...]
</items>
</getDataResult>
</ns1:getDataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
create
Artikel erstellen
EvalancheResourceInformation create (int article_preset_id, string name, EvalancheHashMap data, int category_id)
Details
Parameter
- int article_preset_id: ID des Artikeltypen, der verwendet werden soll
- string name: Name des Artikels
- EvalancheHashMap data: EvalancheHashMap mit den Daten des Artikels
- int category_id: ID des Ordners, in welchem der Artikel erstellt werden soll
Rückgabewert
- EvalancheResourceInformation: Objekt analog zur Methode getById (Informationen über ein Objekt mittels Objekt ID abfragen)
Benötigte Rechte
Artikel erzeugen
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/article">
<soapenv:Header/>
<soapenv:Body>
<art:create>
<article_preset_id>ARTICLE_PRESET_ID</article_preset_id>
<name>NAME</name>
<data>
<items>
<!--Zero or more repetitions:-->
<item>
<!--You may enter the following 2 items in any order-->
<key>ARTICLE_FIELD_NAME</key>
<value>CONTENT</value>
</item>
</items>
</data>
<category_id>FOLDER_ID</category_id>
</art:create>
</soapenv:Body>
</soapenv:Envelope></soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/article">
<SOAP-ENV:Body>
<ns1:createResponse>
<createResult>
<url>ARTICLE_URL</url>
<type_id>TYPE_ID</type_id>
<category_id>FOLDER_ID</category_id>
<customer_id>MANDATOR_ID</customer_id>
<id>ARTICLE_ID</id>
<name>ARTICLE_NAME</name>
</createResult>
</ns1:createResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope></SOAP-ENV:Envelope>
update
Artikel aktualisieren
EvalancheResourceInformation update (int article_id, EvalancheHashMap data)
Details
Parameter
- int article_id: ID des Artikels
- EvalancheHashMap data: EvalancheHashMap mit den Daten des Artikels
Rückgabewert
- EvalancheResourceInformation: Objekt analog zur Methode getById (Informationen über ein Objekt mittels Objekt ID abfragen)
Benötigte Rechte
Artikel verändern
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/article">
<soapenv:Header/>
<soapenv:Body>
<art:update>
<article_id>ARTICLE_ID</article_id>
<data>
<items>
<!--Zero or more repetitions:-->
<item>
<!--You may enter the following 2 items in any order-->
<key>ARTICLE_FIELD_NAME</key>
<value>CONTENT</value>
</item>
</items>
</data>
</art:update>
</soapenv:Body>
</soapenv:Envelope></soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/article">
<SOAP-ENV:Body>
<ns1:updateResponse>
<updateResult>
<url>ARTICLE_URL</url>
<type_id>ARTICLE_TYPE</type_id>
<category_id>FOLDER_ID</category_id>
<customer_id>MANDATOR_ID</customer_id>
<id>ARTICLE_ID</id>
<name>ARTICLE_NAME</name>
</updateResult>
</ns1:updateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope></SOAP-ENV:Envelope>
getIndividualization
Artikelindividualisierung abfragen
EvalancheResourceInformation getIndividualization (int article_id)
Details
Parameter
- int article_id: ID des Artikels
Rückgabewert
- bool has_fallback: Wenn true, wird der abgefrage Artikel selber angezeigt, falls keine Individualisierungszielgruppe zutrifft.
- EvalancheHashMap data: HashMap mit article_id und targetgroup_ids der individualisierten Artikel
Benötigte Rechte
Artikel anzeigen
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/article">
<soapenv:Header/>
<soapenv:Body>
<art:getIndividualization>
<article_id>ARTICLE_ID</article_id>
</art:getIndividualization>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/article">
<SOAP-ENV:Body>
<ns1:getIndividualizationResponse>
<getIndividualizationResult>
<has_fallback>BOOL</has_fallback>
<individualization_items>
<item>
<article_id>ARTICLE_ID</article_id>
<targetgroup_id>TARGETGROUP_ID</targetgroup_id>
</item>
[...]
</individualization_items>
</getIndividualizationResult>
</ns1:getIndividualizationResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
setIndividualization
Artikelindividualisierung aktualisieren
EvalancheResourceInformation setIndividualization (int article_id, EvalancheHashMap configuration)
Details
Parameter
- int article_id: ID des Artikels
- EvalancheHashMap configuration: EvalancheHashMap mit den Daten der Artikelindividualisierung
Rückgabewert
- bool: True, wenn Konfiguration erfolgreich aktualisiert wurde.
Benötigte Rechte
Artikel verändern
Verwendung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:art="https://scnem.com/soap.php/soap/article">
<soapenv:Header/>
<soapenv:Body>
<art:setIndividualization>
<article_id>ARTICLE_ID
</article_id>
<configuration>
<!--You may enter the following 2 items in any order-->
<has_fallback>BOOL</has_fallback>
<individualization_items>
<!--Zero or more repetitions:-->
<item>
<!--You may enter the following 2 items in any order-->
<article_id>ARTICLE_ID
</article_id>
<targetgroup_id>TARGETGROUP_ID</targetgroup_id>
</item>
[...]
</individualization_items>
</configuration>
</art:setIndividualization>
</soapenv:Body>
</soapenv:Envelope>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://scnem.com/soap.php/soap/article">
<SOAP-ENV:Body>
<ns1:setIndividualizationResponse>
<setIndividualizationResult>BOOL</setIndividualizationResult>
</ns1:setIndividualizationResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>