A PHP script bundle built for the merchant of Back Market which includes basic API functions and basic functions for dealing with listings and orders.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Your own PHP environment should be settled down, you can check the PHP version by running:
php --version
- The database of this repo is MySQL. So you should configure your own database before running the script.
- Run the command to start the script for dealing with listings and orders:
/usr/bin/wget http://localhost/.../BackMarket_Merchant_API/testscripts/bm_listings.php /usr/bin/wget http://localhost/.../BackMarket_Merchant_API/testscripts/bm_orders.php
-
(Optional) You can choose to run the script in the directory
./testscripts/logclean:- Run the
folderclean.phpscript for cleaning logs periodically:
/usr/bin/wget http://localhost/.../BackMarket_Merchant_API/testscripts/logclean/bm_orders.php
- Run the