use LucasFidelis\MercadoLivreSdk\Client\Client;
use LucasFidelis\MercadoLivreSdk\Managers\ProductManager;
...
$itemId = 'MLB123456789';
$client = new Client($CLIENT_ID, $CLIENT_SECRET, $ACCESS_TOKEN, $REFRESH_TOKEN);
$productManager = new ProductManager($client);
$product = $productManager->findById($itemId);
$product->setPrice(123.45);
$productManager->updatePrice($product);
composer require lucasfidelis/mercado-livre-sdk
Feature | Status |
---|---|
Authorization | ✅ |
Refresh token | ✅ |
Create a test user | ✅ |
Get Profile | ✅ |
Feature | Status |
---|---|
Get Item by ID | ✅ |
Search items by Seller ID | ✅ |
Get current sales price | ✅ |
Change variations | ✅ |
Update Available Quantity | ✅ |
Get Item Prices | ✅ |
Update Price | ✅ |
Create an Item | 🔜 |
Feature | Status |
---|---|
Get Order by ID | ✅ |
Get Billing Info | ✅ |
Feature | Status |
---|---|
Get Shipment by ID | ✅ |
Get Shipment Costs | ✅ |
Get Shipment Items | ✅ |
Get Shipment Label as ZPL | ✅ |
Feel free to open pull requests; we welcome contributions! However, for significant changes, it's best to open an issue beforehand. Before creating your own issue or pull request, always check to see if one already exists!
This project is not associated, authorized, endorsed by, or in any way with MercadoLibre.
MercadoLibre, as well as related names, marks, emblems and images are registered trademarks of their respective owners.