🔧 Bug Fixes: - Fixed product image structure to match Miravia API requirements - Updated MiraviaProduct.php getData() method to wrap images in {"Image": [...]} format - Updated MiraviaCombination.php getData() method to wrap SKU images properly - Resolved error "[4224] The Main image of the product is required" 📋 Changes: - Modified getData() methods to transform flat image arrays to nested structure - Product images: images[] → Images: {"Image": [...]} - SKU images: images[] → Images: {"Image": [...]} - Maintains backward compatibility for empty image arrays 🎯 Impact: - Product uploads will now pass Miravia's image validation - Both product-level and SKU-level images properly formatted - Complies with official Miravia API documentation structure 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
12 lines
558 B
PHP
12 lines
558 B
PHP
<?php
|
|
|
|
use Sweeper\PlatformMiddleware\Sdk\AeSdk\Iop\IopClient;
|
|
use Sweeper\PlatformMiddleware\Sdk\AeSdk\Iop\IopRequest;
|
|
|
|
$c = new IopClient('https://api-pre.aliexpress.com/sync', '33505222', 'e1fed6b34feb26aabc391d187732af93');
|
|
$request = new IopRequest('aliexpress.logistics.redefining.getlogisticsselleraddresses');
|
|
$request->simplify = "true";
|
|
$request->format = "xml";
|
|
$request->addApiParam('seller_address_query', 'pickup');
|
|
|
|
var_dump($c->execute($request, "50000001a27l15rndYBjw6PrtFFHPGZfy09k1Cp1bd8597fsduP0RsNy0jhF6FL")); |