Originally published at: http://www.sitepoint.com/adding-products-ebay-store-trading-api/
This entry is part 3 of 3 in the series Using eBay's API to Develop a Product Management App
Using eBay's API to Develop a Product Management App
- Introducing eBay’s Trading API – Setting Up
- Configuring Your Store’s Settings with the eBay Trading API
- Adding Products to Your eBay Store with the Trading API
In this third and final part of our eBay Trading API series, we’ll be building the product adding functionality into our application.
Creating new Products
Now that we’re done with the store settings, we can begin with writing the code for the controller that would handle the creation of products. Under the controllers
directory, create a new file and name it Product.php
.
<?php
class Product extends \SlimController\SlimController{
}
Next, create the newAction
method. This will render the new.twig
file under the templates/product
directory. This is the view that renders the form for creating new products.