Via Composer
$ composer require edfa3ly-backend/seller-center-sdk
Make sure to register the SellerCenterBundle::class
to use dependency injection.
https://sellerapi.sellercenter.net/docs
- Category Attributes
getCategoryAttributes
- Feed
getFeedStatus
- Order
cancelOrder
getMultipleOrderItems
getMultipleOrdersWithOrderItems
getOrder
getOrderItems
getOrderWithOrderItems
getOrders
setOrderStatusToDelivered
setOrderStatusToFailedDelivery
setOrderStatusToReadyToShip
setOrderStatusToShipped
- Product
createProducts
getProducts
updateProducts
- Product Image
createImages
class Example
{
public function index() {
$configuration = new Configuration('https://sellercenter-api.x.com.y','email@example.com','apiKey','apiPassword','username','v1');
$configuration->setMinAttemptsDelay(1); // in seconds default : 1
$configuration->setMaxAttemptsDelay(10); // in seconds default : 5
$configuration->setRequestAttemptsThreshold(15) ; // number of failure retries default : 10
$productService = new ProductService();
$products = $productService->getProducts($configuration,[]);
}
}
When performing one of the following actions :
createProducts
updateProducts
createImages
You will need xml representation to be delivered to the service ,
Now you can use the Renderer
Service provided by this package .
class Example
{
public function index() {
$configuration = new Configuration('https://sellercenter-api.x.com.y','email@example.com','apiKey','apiPassword','username','v1');
$configuration->setMinAttemptsDelay(1); // in seconds default : 1
$configuration->setMaxAttemptsDelay(10); // in seconds default : 5
$configuration->setRequestAttemptsThreshold(15) ; // number of failure retries default : 10
$productService = new ProductService();
$products = $productService->getProducts($configuration,[]);
$renderer = new ProductUpdateRenderer();
$xml = $renderer->render($products);
$productService->updateProducts($configuration,$xml);
}
}
Set Configuration to enable logging
$configuration->setLoggingEnabled(true);
$ make test
If you discover any security related issues, please email omarfawzi96@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.