Questo metodo può essere utilizzato per modificare un gruppo di attributi all'interno del sistema.
I parametri richiesti da questa funzione sono:
Il metodo non ha nessun valore di ritorno.
In caso di errore il metodo genererà un'eccezione che riporterà uno dei seguenti codici di errore:
require "vendor/autoload.php" try { $ezPrintSDK = new ezPrintSDKWrapper('http://demo.ezprint.it'); $apiToken = $ezPrintSDK->cLoginAPI('1WHm0icsupAEm9fil9en','yCHZ0nKiyn1MU0DhpgmG'); $availableLanguages = $ezPrintSDK->backOffice->bGetAvailableLanguages(); $productAttributeGroups = $ezPrintSDK->backOffice->bGetProductAttributeGroups(false, $availableLanguages[0]['languageId']); $productAttributeGroupName = array(); foreach($availableLanguages as $language) { $productAttributeGroupName[] = array( 'languageId' => $language['languageId'], 'value' => 'Nome ' . $language['languageName'] ); } $ezPrintSDK->backOffice->bEditProductAttributeGroup(productAttributeGroups[0]['attributeGroupId'], $productAttributeGroupName, 0); } catch (Exception $e) { echo 'Error Code: ', $e->getMessage(); } |
try { var util = require('util'); var ezPrintSDK = require('ezprint-sdk-wrapper'); ezPrintSDK.initializeWrapper('http://demo.ezprint.it'); var apiToken = ezPrintSDK.cLoginAPI('1WHm0icsupAEm9fil9en','yCHZ0nKiyn1MU0DhpgmG'); var availableLanguages = ezPrintSDK.backOffice.bGetAvailableLanguages(); var productAttributeGroups = ezPrintSDK.backOffice.bGetProductAttributeGroups(false, availableLanguages[0].languageId); var productAttributeGroupName = []; availableLanguages.forEach(function(language) { productAttributeGroupName.push({ languageId: language['languageId'], value: 'Nome ' . language['languageName'] }); }); ezPrintSDK.backOffice.bEditProductAttributeGroup(productAttributeGroups[0].attributeGroupId, productAttributeGroupName , 0); } catch (ex) { console.log(ex); } |
try { ezPrintSDKWrapper.Client ezPrintSDK = new ezPrintSDKWrapper.Client("http://demo.ezprint.it"); ezPrintSDK.cLoginAPI("1WHm0icsupAEm9fil9en","yCHZ0nKiyn1MU0DhpgmG"); List<ezPrintSDKWrapper.Structures.languageItem> availableLanguages = ezPrintSDK.BackOffice.bGetAvailableLanguages(); List<ezPrintSDKWrapper.Structures.productAttributeGroupItem> productAttributeGroups = ezPrintSDK.BackOffice.bGetProductAttributeGroups(false, availableLanguages[0].languageId); List<ezPrintSDKWrapper.Structures.localizationItem> productAttributeGroupName = new List<ezPrintSDKWrapper.Structures.localizationItem>(); foreach (ezPrintSDKWrapper.Structures.languageItem language in availableLanguages) { productAttributeGroupName.Add(new ezPrintSDKWrapper.Structures.localizationItem() {languageId = language.languageId, value = "Name " + language.languageName}); } ezPrintSDK.BackOffice.bEditProductAttributeGroup(productAttributeGroups[0].attributeGroupId, productAttributeGroupName , 0); } catch (ezPrintException ex) { string ErrorMessage = ex.Message; } |