2015年1月13日星期二

SitePoint PHP Blog: Adding Products to Your eBay Store with the Trading API


The SitePoint blog has posted the next part of their "using the eBay trading API" series today (part three) showing you how to add products to your store via their API.



In this third and final part of our eBay Trading API series, we'll be building the product adding functionality into our application. 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.


He walks you through the code to create the "new" action on your Slim controller, build the view to gather the product information and handle the upload of product images with the Dropzone Javascript library. Also included is the code to get the current category list (to populate a dropdown list) and the code needed to create the product, both in your database and sending it back to the eBay API for insertion. This finishes the series about using this API, but you can get more information on the API itself though its documentation. The full code for the tutorial series is available on GitHub.


Link: http://www.sitepoint.com/adding-products-ebay-store-trading-api/

没有评论:

发表评论